Laravel 5.4在刀片中返回

时间:2018-07-24 04:00:10

标签: laravel

我需要在刀片中返回上一页的按钮 我尝试

{{ route(back()) }} Not working

{{back()}} Not working

{{ redirect(back()) }} Not working

1 个答案:

答案 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();