interface AssignmentRepositoryInterface implements EloquentRepositoryInterface

Methods

all()

Return all records.

find($id)

Find a record by it's ID.

findTrashed($id)

Find a trashed record by it's ID.

create( array $attributes)

Create a new record.

newInstance()

Return a new instance.

int
count()

Count all records.

LengthAwarePaginator
paginate( array $parameters = array())

Return a paginated collection.

bool
save( EloquentModel $entry)

Save a record.

bool
update( array $attributes = array())

Update multiple records.

bool
delete( EloquentModel $entry)

Delete a record.

bool
forceDelete( EloquentModel $entry)

Force delete a record.

bool
restore( EloquentModel $entry)

Restore a trashed record.

$this
truncate()

Truncate the entries.

$this
setModel( EloquentModel $model)

Set the repository model.

findByRaindropAndField( RaindropInterface $raindrop, FieldInterface $field)

Find an assignment by raindrop and field.

findByRaindrop( RaindropInterface $raindrop)

Find all assignments by raindrop.

cleanup()

Clean up orphaned assignments.

Details

EloquentCollection all()

Return all records.

Return Value

EloquentCollection

null|EloquentModel find($id)

Find a record by it's ID.

Parameters

$id

Return Value

null|EloquentModel

null|EloquentModel findTrashed($id)

Find a trashed record by it's ID.

Parameters

$id

Return Value

null|EloquentModel

EloquentModel create( array $attributes)

Create a new record.

Parameters

array $attributes

Return Value

EloquentModel

EloquentModel newInstance()

Return a new instance.

Return Value

EloquentModel

int count()

Count all records.

Return Value

int

LengthAwarePaginator paginate( array $parameters = array())

Return a paginated collection.

Parameters

array $parameters

Return Value

LengthAwarePaginator

bool save( EloquentModel $entry)

Save a record.

Parameters

EloquentModel $entry

Return Value

bool

bool update( array $attributes = array())

Update multiple records.

Parameters

array $attributes

Return Value

bool

bool delete( EloquentModel $entry)

Delete a record.

Parameters

EloquentModel $entry

Return Value

bool

bool forceDelete( EloquentModel $entry)

Force delete a record.

Parameters

EloquentModel $entry

Return Value

bool

bool restore( EloquentModel $entry)

Restore a trashed record.

Parameters

EloquentModel $entry

Return Value

bool

$this truncate()

Truncate the entries.

Return Value

$this

$this setModel( EloquentModel $model)

Set the repository model.

Parameters

EloquentModel $model

Return Value

$this

EloquentModel getModel()

Get the model.

Return Value

EloquentModel

at line 21
null|AssignmentInterface|EloquentModel findByRaindropAndField( RaindropInterface $raindrop, FieldInterface $field)

Find an assignment by raindrop and field.

Parameters

RaindropInterface $raindrop
FieldInterface $field

Return Value

null|AssignmentInterface|EloquentModel

at line 30
AssignmentCollection findByRaindrop( RaindropInterface $raindrop)

Find all assignments by raindrop.

Parameters

RaindropInterface $raindrop

Return Value

AssignmentCollection

at line 35
cleanup()

Clean up orphaned assignments.