laravel get a url using name

Solutions on MaxInterview for laravel get a url using name by the best coders in the world

showing results for - "laravel get a url using name"
Josh
25 Jul 2019
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();
Luis
26 Jan 2021
1use Illuminate\Support\Facades\URL;
2
3echo URL::current();
Claudio
03 Jan 2018
1$url = route('routeName');
2
3//if there is a param:
4$url = route('routeName', ['id' => 1]);
5
6https://laravel.com/docs/5.1/helpers#method-route
7
similar questions
queries leading to this page
laravel get a url using name