original_string: public function apply(Builder $builder)
      {
          $this->builder = $builder;
  
          // We need to select all columns from the original
          // table, since many joins can mess up the selected fields
          $this->builder->select("{$this->getTableName()}.*");
  
          foreach ($this->filters() as $name => $value) {
              $this->callFilterMethod($name, $value);
          }
  
          return $this->builder;
      }
code: public function apply(Builder $builder)
      {
          $this->builder = $builder;
  
          // We need to select all columns from the original
          // table, since many joins can mess up the selected fields
          $this->builder->select("{$this->getTableName()}.*");
  
          foreach ($this->filters() as $name => $value) {
              $this->callFilterMethod($name, $value);
          }
  
          return $this->builder;
      }
code_tokens: public function apply ( Builder $ builder ) { $ this -> builder = $ builder ; // We need to select all columns from the original // table, since many joins can mess up the selected fields $ this -> builder -> select ( "{$this->getTableName()}.*" ) ; foreach ( $ this -> filters ( ) as $ name => $ value ) { $ this -> callFilterMethod ( $ name , $ value ) ; } return $ this -> builder ; }
docstring: Applies all available filters.
  
  @param  \Illuminate\Database\Eloquent\Builder  $builder
  @return \Illuminate\Database\Eloquent\Builder
docstring_tokens: Applies all available filters .