Lumen: get the full url containing the query string

In Lumen (the micro-framework by Laravel) the following code will return the full url containing also the query string:

public function someMethod(Request $request)
  // Get the full url



This code works inside a controller where you can get the $request object.

Blade view

Inside a blade view can be used this:

{{ app('url')->full() }}

Laravel (using the URL facade)

On Laravel can be used also the URL facade:




Category BootstrapCategory CoffeescriptCategory DrupalCategory GravCategory HTMLCategory JavascriptCategory JoomlaCategory jQueryCategory LaravelCategory MagentoCategory PHPCategory SharePointCategory SpringCategory ThymeleafCategory WordPressCategory Workflow


Developed and designed by Netgloo
© 2019 Netgloo