protected function extractQueryFilter(Request $request)
    {
        return array_map(
            function ($value) {
                return array_filter(explode(',', trim($value, ',')), function ($var) {
                    return !empty($var);
                });
            },
            $request->query->all()
        );
    }
protected function extractQueryFilter(Request $request)
    {
        return array_map(
            function ($value) {
                return array_filter(explode(',', trim($value, ',')), function ($var) {
                    return !empty($var);
                });
            },
            $request->query->all()
        );
    }
protected function extractQueryFilter ( Request $ request ) { return array_map ( function ( $ value ) { return array_filter ( explode ( ',' , trim ( $ value , ',' ) ) , function ( $ var ) { return ! empty ( $ var ) ; } ) ; } , $ request -> query -> all ( ) ) ; }
Extract available query filter from request.

@param Request $request

@return array
Extract available query filter from request .