public function withQuery(array $query = [])
    {
        // Set Query in class.
        $this->query = collect($this->query)->merge($query)->all();

        return $this;
    }
public function withQuery(array $query = [])
    {
        // Set Query in class.
        $this->query = collect($this->query)->merge($query)->all();

        return $this;
    }
public function withQuery ( array $ query = [ ] ) { // Set Query in class. $ this -> query = collect ( $ this -> query ) -> merge ( $ query ) -> all ( ) ; return $ this ; }
Add Query to the Request.

@param array $query

@return self
Add Query to the Request .