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();
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