Jedrzej\Pimpable\PimpableTrait::scopePimp PHP Метод

scopePimp() публичный Метод

Enable searchable, sortable and withable scopes
public scopePimp ( Builder $builder, array $query = [], $sort = [], $relations = [] )
$builder Illuminate\Database\Eloquent\Builder query builder
$query array
    public function scopePimp(Builder $builder, $query = [], $sort = [], $relations = [])
    {
        $query = $query ?: array_except(Input::all(), [$this->sortParameterName, $this->withParameterName]);
        $builder->filtered($query)->sorted($sort)->withRelations($relations);
    }