public function path($query = false)
    {
        return $this->path . ($query && $this->query->has() ? '?' . http_build_query($this->query->all(), null, '&') : null);
    }
public function path($query = false)
    {
        return $this->path . ($query && $this->query->has() ? '?' . http_build_query($this->query->all(), null, '&') : null);
    }
public function path ( $ query = false ) { return $ this -> path . ( $ query && $ this -> query -> has ( ) ? '?' . http_build_query ( $ this -> query -> all ( ) , null , '&' ) : null ) ; }
Returns requested URL

@param bool $query

@return string
Returns requested URL