protected function applyFilter($query)
    {
        if ($this->getModelInformation()->list->disable_filters) {
            return $this;
        }

        $filter = $this->makeFilter();

        if ($filter) {
            $filter->apply($query);
        }

        return $this;
    }
protected function applyFilter($query)
    {
        if ($this->getModelInformation()->list->disable_filters) {
            return $this;
        }

        $filter = $this->makeFilter();

        if ($filter) {
            $filter->apply($query);
        }

        return $this;
    }
protected function applyFilter ( $ query ) { if ( $ this -> getModelInformation ( ) -> list -> disable_filters ) { return $ this ; } $ filter = $ this -> makeFilter ( ) ; if ( $ filter ) { $ filter -> apply ( $ query ) ; } return $ this ; }
Applies the current filters, if any, to the model's query builder.

@param Builder $query
@return $this
Applies the current filters if any to the model s query builder .