public function runQueryFilter(\Illuminate\Database\Query\Builder &$query)
    {
        if ($filter = $this->getOption('query_filter')) {
            $filter($query);
        }
    }
public function runQueryFilter(\Illuminate\Database\Query\Builder &$query)
    {
        if ($filter = $this->getOption('query_filter')) {
            $filter($query);
        }
    }
public function runQueryFilter ( \ Illuminate \ Database \ Query \ Builder & $ query ) { if ( $ filter = $ this -> getOption ( 'query_filter' ) ) { $ filter ( $ query ) ; } }
Runs a user-supplied query filter if one is supplied.

@param \Illuminate\Database\Query\Builder $query
Runs a user - supplied query filter if one is supplied .