获得url
//返回当前页面的地址(不包含参数)
url()->current();
//返回当前页面的完整地址(包含参数)
url()->full();
//返回前一个页面的地址(包含参数)
url()->previous();
// 返回标准的指定路径名
// 例:http://127.0.0.1/user/profile
echo url('user/profile');
view中使用
<a href="{{ url()->previous() }}">返回上一页</a>
controller中重定向
return redirect('/home/index/index');
controller中跳转
return view('home.index');
中止报错(404)
abort(404);