public function allowedFeatures(Collection $request) : array
    {
        return $request->filter(function ($item, $key) {
            return trim($item) != '' && $this->isFilterable($key);
        })->all();
    }
public function allowedFeatures(Collection $request) : array
    {
        return $request->filter(function ($item, $key) {
            return trim($item) != '' && $this->isFilterable($key);
        })->all();
    }
public function allowedFeatures ( Collection $ request ) : array { return $ request -> filter ( function ( $ item , $ key ) { return trim ( $ item ) != '' && $ this -> isFilterable ( $ key ) ; } ) -> all ( ) ; }
Returns an array with the allowed features.

@param  Collection $request

@return array
Returns an array with the allowed features .