current url with parameters laravel code example
Example 1: current URL without url site laravel
is work
{{Request::path()}}
or
request()->path()
Example 2: how to get variable from url in laravel
request('variable')
Example 3: laravel get url parameters in controller
Route::put('user/{name}', 'UserController@show');