src/lib/Table.php
private function runFilters()
    {
        foreach ($this->filterObjects as $filter) {
            $filter_key = $filter->getKey();

            // Execute the filter method if enabled
            if ($this->request->has($filter_key)) {
                $filter_option = ucfirst(preg_replace('/[^a-z0-9]/i', ' ', $this->request->input($filter_key)));

                $filter_key = ucfirst(preg_replace('/[^a-z0-9]/i', ' ', $filter_key));

                if (!in_array($filter_option, $this->filters[$filter_key])) {
                    continue;
                }

                $filter_method = 'filter'.Str::studly($filter_key).Str::studly($filter_option);

                if (method_exists($this, $filter_method)) {
                    $this->$filter_method();
                }
            }
        }
    }
private function runFilters()
    {
        foreach ($this->filterObjects as $filter) {
            $filter_key = $filter->getKey();

            // Execute the filter method if enabled
            if ($this->request->has($filter_key)) {
                $filter_option = ucfirst(preg_replace('/[^a-z0-9]/i', ' ', $this->request->input($filter_key)));

                $filter_key = ucfirst(preg_replace('/[^a-z0-9]/i', ' ', $filter_key));

                if (!in_array($filter_option, $this->filters[$filter_key])) {
                    continue;
                }

                $filter_method = 'filter'.Str::studly($filter_key).Str::studly($filter_option);

                if (method_exists($this, $filter_method)) {
                    $this->$filter_method();
                }
            }
        }
    }
private function runFilters ( ) { foreach ( $ this -> filterObjects as $ filter ) { $ filter_key = $ filter -> getKey ( ) ; // Execute the filter method if enabled if ( $ this -> request -> has ( $ filter_key ) ) { $ filter_option = ucfirst ( preg_replace ( '/[^a-z0-9]/i' , ' ' , $ this -> request -> input ( $ filter_key ) ) ) ; $ filter_key = ucfirst ( preg_replace ( '/[^a-z0-9]/i' , ' ' , $ filter_key ) ) ; if ( ! in_array ( $ filter_option , $ this -> filters [ $ filter_key ] ) ) { continue ; } $ filter_method = 'filter' . Str :: studly ( $ filter_key ) . Str :: studly ( $ filter_option ) ; if ( method_exists ( $ this , $ filter_method ) ) { $ this -> $ filter_method ( ) ; } } } }
Run the filters.

@return void
Run the filters .