laravel use url

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

showing results for - "laravel use url"
Giuseppe
19 May 2018
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();
Nina
11 May 2018
1URL::to('/');
Emil
13 May 2019
1use Illuminate\Support\Facades\URL;
2
3echo URL::current();
Itzel
09 Oct 2017
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 use url