Метод |
Описание |
|
create ( array $attributes = [] ) : array |
Create a new entity with the given attributes. |
|
createModel ( ) : Model |
Create a new repository model instance. |
|
delete ( mixed $id ) : array |
Delete an entity with the given id. |
|
find ( integer $id, array $attributes = ['*'] ) : Model |
Find an entity by it's primary key. |
|
findAll ( array $attributes = ['*'] ) : Collection |
Find all entities. |
|
findBy ( string $attribute, string $value, array $attributes = ['*'] ) : Model |
Find an entity by one of it's attributes. |
|
findWhere ( array $where, array $attributes = ['*'] ) : Collection |
Find all entities matching where conditions. |
|
findWhereIn ( array $where, array $attributes = ['*'] ) : Collection |
Find all entities matching whereIn conditions. |
|
findWhereNotIn ( array $where, array $attributes = ['*'] ) : Collection |
Find all entities matching whereNotIn conditions. |
|
paginate ( integer | null $perPage = null, array $attributes = ['*'], string $pageName = 'page', integer | null $page = null ) : Illuminate\Contracts\Pagination\LengthAwarePaginator |
Paginate all entities. |
|
simplePaginate ( integer | null $perPage = null, array $attributes = ['*'], string $pageName = 'page', integer | null $page = null ) : Illuminate\Contracts\Pagination\Paginator |
Paginate all entities into a simple paginator. |
|
update ( mixed $id, array $attributes = [] ) : array |
Update an entity with the given attributes. |
|