public function applyFilters(Builder $query, string $alias = null)
    {
        foreach ($this->getFilters() as $filter) {
            $filter->apply($query, $alias);
        }
    }
public function applyFilters(Builder $query, string $alias = null)
    {
        foreach ($this->getFilters() as $filter) {
            $filter->apply($query, $alias);
        }
    }
public function applyFilters ( Builder $ query , string $ alias = null ) { foreach ( $ this -> getFilters ( ) as $ filter ) { $ filter -> apply ( $ query , $ alias ) ; } }
Applies filter to Eloquent Query builder

@param Builder     $query Eloquent query builder
@param string|null $alias SQL alias

@return void
Applies filter to Eloquent Query builder