laravel url

Solutions on MaxInterview for laravel url by the best coders in the world

showing results for - "laravel url"
Minnie
04 Feb 2016
1// Get the current URL without the query string...
2echo url()->current();
3
4// Get the current URL including the query string...
5echo url()->full();
6
7// Get the full URL for the previous request...
8echo url()->previous();
Anna
18 Jul 2017
11. The cleanest way seems to be using the url() helper:
2	{{ url()->previous() }}
3
42. URL::previous() works for me in my Laravel 5.1 project. Here is Laravel 5.1 
5  doc for previous() method, which is accessible through URL Facade.
6
73. You can still try alternatives, in your views you can do:
8
9	{{ redirect()->getUrlGenerator()->previous() }}
10						OR
11	{{ redirect()->back()->getTargetUrl() }}
Valentina
02 Sep 2017
1is work
2{{Request::path()}}
3or
4request()->path()
5
Filippo
25 Aug 2017
1A slug is the part of a URL which identifies a particular page on a 
2website in an easy to read form.
Ylann
06 Apr 2016
1// Get the base URL.
2echo url('');
3
4// Get the app URL from configuration which we set in .env file.
5echo config('app.url'); 
6
Milla
13 Mar 2016
1{{ URL::asset('css/css.css') }} 
similar questions
queries leading to this page
laravel url