[英]The page has expired due to inactivity. Please refresh and try again. "in my production hosting cpanel after i login" laravel 5.5
I'm getting the following error when I login with username and password:使用用户名和密码登录时出现以下错误:
I've tried:
我试过了:
cache:clear
route:clear
view:clear
config:clear
but it not working但它不起作用
php artisan optimize
When you clear you cache you have to config it as well.当您清除缓存时,您还必须对其进行配置。
Optimize
command will do that for you (also clear your routes,files etc etc all in 1), or php artisan config:cache
after clear Optimize
命令将为您完成此操作(同时清除您的路由、文件等),或清除后php artisan config:cache
But that issue could come from your form itself.但这个问题可能来自您的表单本身。 Make sure in your form you have this field inside :
确保在您的表单中包含此字段:
<form method="POST" action="/myPage">
@csrf
// html goes here.
</form
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.