The page has expired due to inactivity. Please refresh and try again laravel 5

The page has expired due to inactivity. Please refresh and try again laravel 5

The page has expired due to inactivity. Please refresh and try again

方法1:

{!! csrf_field() !!}

方法2:

<input type="hidden" name="_token" value="{{ csrf_token() }}">

方法3:

app/Http/Middleware/VerifyCsrfToken.php

 protected $except = [
        'your/route'
    ];

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据