protected function prepareRequestUrl(array $query)
    {
        $path = isset($query['from']['path']) ? $query['from']['path'] : null;

        $wheres = isset($query['wheres']) ? $query['wheres'] : null;

        $baseUrl = $this->host.$path;

        // Here we validate that there are any wheres in the
        // request. When none are provided we will return the
        // Request Url without the question mark.
        if (! is_null($wheres)) {
            return $baseUrl.'?'.$wheres;
        }

        return $baseUrl;
    }
protected function prepareRequestUrl(array $query)
    {
        $path = isset($query['from']['path']) ? $query['from']['path'] : null;

        $wheres = isset($query['wheres']) ? $query['wheres'] : null;

        $baseUrl = $this->host.$path;

        // Here we validate that there are any wheres in the
        // request. When none are provided we will return the
        // Request Url without the question mark.
        if (! is_null($wheres)) {
            return $baseUrl.'?'.$wheres;
        }

        return $baseUrl;
    }
protected function prepareRequestUrl ( array $ query ) { $ path = isset ( $ query [ 'from' ] [ 'path' ] ) ? $ query [ 'from' ] [ 'path' ] : null ; $ wheres = isset ( $ query [ 'wheres' ] ) ? $ query [ 'wheres' ] : null ; $ baseUrl = $ this -> host . $ path ; // Here we validate that there are any wheres in the // request. When none are provided we will return the // Request Url without the question mark. if ( ! is_null ( $ wheres ) ) { return $ baseUrl . '?' . $ wheres ; } return $ baseUrl ; }
Prepare request URL from query.

@param  array  $query
@return string
Prepare request URL from query .