class ContactsManager extends Manager

Methods

array
fillable()

Define the fillable fields.

Model
makeFillable(Model $model)

Set fillable fields for the given model.

from Manager
Contact
create(array $data, User $user)

Create a new contact.

Collection
fromUser(User $user)

Get the users contacts.

Contact
fromId(int $id)

Find the contact by id.

Contact
update(Contact $contact, array $data)

Update the given contact.

Details

at line 70
protected array fillable()

Define the fillable fields.

Return Value

array

in Manager at line 20
protected Model makeFillable(Model $model)

Set fillable fields for the given model.

Parameters

Model $model

Return Value

Model

at line 17
Contact create(array $data, User $user)

Create a new contact.

Parameters

array $data
User $user

Return Value

Contact

at line 35
Collection fromUser(User $user)

Get the users contacts.

Parameters

User $user

Return Value

Collection

at line 46
Contact fromId(int $id)

Find the contact by id.

Parameters

int $id

Return Value

Contact

at line 58
Contact update(Contact $contact, array $data)

Update the given contact.

Parameters

Contact $contact
array $data

Return Value

Contact