original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Enable searchable, sortable and withable scopes
  
  @param Builder $builder query builder
  @param array $query
docstring_tokens: Enable searchable sortable and withable scopes