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;
    }
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;
    }
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 ; }
Applies search term based filtering to a query builder.

@param Builder     $query
@param string|null $target
@param string      $search
@return $this
Applies search term based filtering to a query builder .