src/Generic/Filter.php
/**
     * At first we apply prefix to $this->filterables and get all data from request,
     * after that we remove prefix from keys so we can easily manipulate it.
     *
     * @return array
     */
At first we apply prefix to $this->filterables and get all data from request,
after that we remove prefix from keys so we can easily manipulate it.

@return array
At first we apply prefix to $this - > filterables and get all data from request after that we remove prefix from keys so we can easily manipulate it . @return array
private function filters()
    {
        $data = $this->request->only($this->prefixedFilterables);
        $data = array_filter($data, 'strlen');
        foreach ($data as $key => $value) {
            $sanitizedData[remove_prefix($this->prefix, $key, false)] = $value;
        }
        return $sanitizedData ?? [];
    }
private function filters ( ) { $ data = $ this -> request -> only ( $ this -> prefixedFilterables ) ; $ data = array_filter ( $ data , 'strlen' ) ; foreach ( $ data as $ key => $ value ) { $ sanitizedData [ remove_prefix ( $ this -> prefix , $ key , false ) ] = $ value ; } return $ sanitizedData ?? [ ] ; }
At first we apply prefix to $this->filterables and get all data from request,
 after that we remove prefix from keys so we can easily manipulate it.
At first we apply prefix to $this - > filterables and get all data from request after that we remove prefix from keys so we can easily manipulate it .
// Grab all data from query strings that start with the prefix $this->prefix. // Get rid of empty values. // Clean up data and remove the prefix 'filter-' from keys.