我需要在刀片中返回上一页的按钮 我尝试
{{ route(back()) }} Not working
{{back()}} Not working
{{ redirect(back()) }} Not working
答案 0 :(得分:2)
使用以前的方法
{{ URL::previous() }}
或者您也可以使用助手。
// 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();