protected function applyFilters($query, $filters = array(), $excludeFilters = array())
    {
        foreach( $this->preProcessFilters($filters) as $key => $value ) {
            if( $value == '' || in_array( $key, $excludeFilters ) ) {
                continue;
            }

            $query = $query->where($key, '=', $value);
        }

        return $query;
    }
protected function applyFilters($query, $filters = array(), $excludeFilters = array())
    {
        foreach( $this->preProcessFilters($filters) as $key => $value ) {
            if( $value == '' || in_array( $key, $excludeFilters ) ) {
                continue;
            }

            $query = $query->where($key, '=', $value);
        }

        return $query;
    }
protected function applyFilters ( $ query , $ filters = array ( ) , $ excludeFilters = array ( ) ) { foreach ( $ this -> preProcessFilters ( $ filters ) as $ key => $ value ) { if ( $ value == '' || in_array ( $ key , $ excludeFilters ) ) { continue ; } $ query = $ query -> where ( $ key , '=' , $ value ) ; } return $ query ; }
Apply various filters to the query builder. All filters must be applied using the '=' operator. Filters that
require other operators or additional operations such as joins, must be applied in a different way

@param   Builder $query          The query builder that contains all the clauses that have been applied
@param   array $filters          The filters that are to be applied to the query. The key identifies the database column, the value in the array is the value that is to be matched in the query
@param   array $excludeFilters   The filters that are to be ignored. This might be useful if the filters require a join before they can be applied or if they require a different operator
@return mixed
Apply various filters to the query builder . All filters must be applied using the = operator . Filters that require other operators or additional operations such as joins must be applied in a different way