Méthode |
Description |
|
getModelFilterClass ( ) : ModelFilter |
Returns the ModelFilter for the current model. |
|
provideFilter ( null | string $filter = null ) : ModelFilter |
Returns ModelFilter class to be instantiated. |
|
scopeFilter ( $query, array $input = [], null | string | ModelFilter $filter = null ) : Builder |
Creates local scope to run the filter. |
|
scopePaginateFilter ( $query, integer $perPage = null, array $columns = ['*'], string $pageName = 'page', integer | null $page = null ) : Illuminate\Contracts\Pagination\LengthAwarePaginator |
Paginate the given query with url query params appended. |
|
scopeSimplePaginateFilter ( $query, integer $perPage = null, array $columns = ['*'], string $pageName = 'page' ) : Illuminate\Contracts\Pagination\LengthAwarePaginator |
Paginate the given query with url query params appended. |
|
scopeWhereBeginsWith ( $query, $column, $value, string $boolean = 'and' ) : mixed |
WHERE $column LIKE $value% query. |
|
scopeWhereEndsWith ( $query, $column, $value, string $boolean = 'and' ) : mixed |
WHERE $column LIKE %$value query. |
|
scopeWhereLike ( $query, $column, $value, string $boolean = 'and' ) : mixed |
WHERE $column LIKE %$value% query. |
|