app/Filters/BaseFilter.php
protected function getFilters()
    {
        $filters = array_diff(get_class_methods($this), [
            '__construct', '__call', 'apply', 'getFilters', 'getSearchables', 'getSortables', 'buildSearch', 'buildSql'
        ]);
        $filters = array_merge($filters, array_map(function ($searchable, $key) {
            return is_array($searchable) ? $key : $searchable;
        }, $this->searchables, array_keys($this->searchables)));

        return array_only($this->request->query(), $filters);
    }
protected function getFilters()
    {
        $filters = array_diff(get_class_methods($this), [
            '__construct', '__call', 'apply', 'getFilters', 'getSearchables', 'getSortables', 'buildSearch', 'buildSql'
        ]);
        $filters = array_merge($filters, array_map(function ($searchable, $key) {
            return is_array($searchable) ? $key : $searchable;
        }, $this->searchables, array_keys($this->searchables)));

        return array_only($this->request->query(), $filters);
    }
protected function getFilters ( ) { $ filters = array_diff ( get_class_methods ( $ this ) , [ '__construct' , '__call' , 'apply' , 'getFilters' , 'getSearchables' , 'getSortables' , 'buildSearch' , 'buildSql' ] ) ; $ filters = array_merge ( $ filters , array_map ( function ( $ searchable , $ key ) { return is_array ( $ searchable ) ? $ key : $ searchable ; } , $ this -> searchables , array_keys ( $ this -> searchables ) ) ) ; return array_only ( $ this -> request -> query ( ) , $ filters ) ; }
Fetch all relevant filters from the request.

@return array
Fetch all relevant filters from the request .