[英]Laravel 5.5 The page has expired due to inactivity
I used laravel 5.4 and Zizaco/entrust . 我使用了laravel 5.4和Zizaco / entrust 。
Today I upgrade my project to Laravel 5.5. 今天,我将项目升级到Laravel 5.5。
When I want to login in my project show me this error 当我想登录我的项目时,向我显示此错误
The page has expired due to inactivity.
该页面因不活动而过期。
Please refresh and try again.请刷新,然后重试。
I changed SESSION_DRIVER=file
to SESSION_DRIVER=array
我将
SESSION_DRIVER=file
更改为SESSION_DRIVER=array
Laravel show me this error Laravel告诉我这个错误
This cache store does not support tagging.
此缓存存储区不支持标记。
I search on google and find this 我在Google上搜索并找到了这个
https://github.com/Zizaco/entrust/issues/468 https://github.com/Zizaco/entrust/issues/468
and this post tell me set SESSION_DRIVER=array
这个帖子告诉我set
SESSION_DRIVER=array
I think you forget to put {!!csrf_fields()!!}
inside your login form. 我认为您忘记将
{!!csrf_fields()!!}
放在您的登录表单中。 Just check your login form, If not just put this code in form. 只需检查您的登录表单,否则就不要在表单中输入此代码。
<form action="" method="">
{!!csrf_fields()!!}
//your input fields
</form>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.