original_string: protected function applySearchTermFilterToQueryBuilder($query, $target, $search)
      {
          // Make sure we have a target to work with
          $target = $target ?: $query->getModel()->getKeyName();
  
          $this->applyFilterStrategyToQuery($query, $target, $search);
  
          return $this;
      }
code: protected function applySearchTermFilterToQueryBuilder($query, $target, $search)
      {
          // Make sure we have a target to work with
          $target = $target ?: $query->getModel()->getKeyName();
  
          $this->applyFilterStrategyToQuery($query, $target, $search);
  
          return $this;
      }
code_tokens: protected function applySearchTermFilterToQueryBuilder ( $ query , $ target , $ search ) { // Make sure we have a target to work with $ target = $ target ? : $ query -> getModel ( ) -> getKeyName ( ) ; $ this -> applyFilterStrategyToQuery ( $ query , $ target , $ search ) ; return $ this ; }
docstring: Applies search term based filtering to a query builder.
  
  @param Builder     $query
  @param string|null $target
  @param string      $search
  @return $this
docstring_tokens: Applies search term based filtering to a query builder .