what does $_GET return with no params? eg if you did var_dump($_GET)
alternatively there are some built in functions like $_SERVER['uri'] or so (check docs) which will probably give you parts of the url.. or if not you can at least get all of the URL and then explode on ? and then explode again on &
@dmitaga I wouldn't recommend to access super global variables directly, because of XSS.
If you want function of Request class that returns string as you described try this.
public function someFunction(\Illuminate\Http\Request $request)
{
$queryString = $request->getQueryString()
}
http_build_query($request->query()); // for GET params only
// or
http_build_query($request->all()); // for all data
Not only this would give you "query string, formatted for direct using in links", it would also prepare it in accordance to all related RFCs: eliminate duplicates, encode non-latin characters and so on.