src/Http/RequestUtils.php
public static function toUriString(Request $request)
    {
        $uri = clone $request->getUri();

        $uri->setQuery(array_merge($uri->getQueryAsArray(),
            $request->getQuery()->toArray()));

        return $uri->toString();
    }
public static function toUriString(Request $request)
    {
        $uri = clone $request->getUri();

        $uri->setQuery(array_merge($uri->getQueryAsArray(),
            $request->getQuery()->toArray()));

        return $uri->toString();
    }
public static function toUriString ( Request $ request ) { $ uri = clone $ request -> getUri ( ) ; $ uri -> setQuery ( array_merge ( $ uri -> getQueryAsArray ( ) , $ request -> getQuery ( ) -> toArray ( ) ) ) ; return $ uri -> toString ( ) ; }
Converts the request into a url.

This encodes the query parameters associated with the request.

@param Request $request
@return string
Converts the request into a url .