public function processFilter($toArray = true)
    {
        if ($this->builder) {
            call_user_func($this->builder, $this);
        }

        return $this->filter->execute($toArray);
    }
public function processFilter($toArray = true)
    {
        if ($this->builder) {
            call_user_func($this->builder, $this);
        }

        return $this->filter->execute($toArray);
    }
public function processFilter ( $ toArray = true ) { if ( $ this -> builder ) { call_user_func ( $ this -> builder , $ this ) ; } return $ this -> filter -> execute ( $ toArray ) ; }
Process the grid filter.

@param bool $toArray

@return array|Collection|mixed
Process the grid filter .