Получить запрос URI из запроса Laravel 7
Try to use the following:
\Request::getRequestUri()
Lokesh003Coding
Try to use the following:
\Request::getRequestUri()
# Request URL-http://example.song/example/test?page=1
request()->url();
# http://example.song/example/test
request()->fullUrl();
# http://example.song/example/test?page=1
request()->fullUrlWithQuery(['filter'=>'applied']);
# http://example.song/example/test?page=1&filter=applied
request()->fullUrlWithoutQuery(['page']);
# http://example.song/example/test
request()->path();
# examples/test
request()->segment(2);
# test
request()->segments();
# ['example','test']
$uri = $request->path();
{{ url()->previous() }}
$name = $request->query('name', 'Helen');
dd($request->all());
//print an array of the input name and the input value