获取完整的url php
$fullURL = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
如何在laravel中获取url
// Get the current URL without the query string...
echo url()->current();
// Get the current URL including the query string...
echo url()->full();
// Get the full URL for the previous request...
echo url()->previous();
当前url路由laravel
\Route::current()
############### OR ####################
$request->getRequestUri()
当前网址没有网址网站laravel
is work
{{Request::path()}}
or
request()->path()
laravel get上次get请求
{{ url()->previous() }}