protected function applyFilterStrategyToQuery($query, $target, $value, $strategy = null)
    {
        if (null === $strategy) {
            $strategy = config('cms-models.meta-references.filter-strategy');
        }

        $filter = $this->getFilterFactory()->make($strategy);

        $filter->apply($query, $target, $value);
    }
protected function applyFilterStrategyToQuery($query, $target, $value, $strategy = null)
    {
        if (null === $strategy) {
            $strategy = config('cms-models.meta-references.filter-strategy');
        }

        $filter = $this->getFilterFactory()->make($strategy);

        $filter->apply($query, $target, $value);
    }
protected function applyFilterStrategyToQuery ( $ query , $ target , $ value , $ strategy = null ) { if ( null === $ strategy ) { $ strategy = config ( 'cms-models.meta-references.filter-strategy' ) ; } $ filter = $ this -> getFilterFactory ( ) -> make ( $ strategy ) ; $ filter -> apply ( $ query , $ target , $ value ) ; }
Applies a filter strategy for 'searching' on the model query.

@param Builder     $query
@param string      $target
@param string      $value
@param string|null $strategy     the filter strategy to use, if not default
Applies a filter strategy for searching on the model query .