PHP Trait Jedrzej\Pimpable\PimpableTrait

Inheritance: use trait Jedrzej\Searchable\SearchableTrait, use trait Jedrzej\Sortable\SortableTrait, use trait Jedrzej\Withable\WithableTrait
Afficher le fichier Open project: jedrzej/pimpable

Méthodes publiques

Méthode Description
scopePimp ( Builder $builder, array $query = [], $sort = [], $relations = [] ) Enable searchable, sortable and withable scopes

Méthodes protégées

Méthode Description
getSearchableAttributes ( )
getSortableAttributes ( )
getWithableRelations ( )

Method Details

getSearchableAttributes() protected méthode

protected getSearchableAttributes ( )

getSortableAttributes() protected méthode

protected getSortableAttributes ( )

getWithableRelations() protected méthode

protected getWithableRelations ( )

scopePimp() public méthode

Enable searchable, sortable and withable scopes
public scopePimp ( Builder $builder, array $query = [], $sort = [], $relations = [] )
$builder Illuminate\Database\Eloquent\Builder query builder
$query array