Laravel 5.5 The page has expired due to inactivity error while sending form

折月煮酒 提交于 2019-12-02 03:56:52

Since these commands has solved your problem in the comments i should write it as an answer . Try these commands and start your form again

 php artisan cache:clear
 php artisan config:clear 
 php artisan route:clear 
 php artisan view:clear

I assume that you are using laravel collective for forms builder.

Probably your issue is associate with CSRF Protection (https://laravelcollective.com/docs/master/html#csrf-protection).

Please check the above link and ensure that you include CSRF based on method or explicit Form::token();

Another point is that Laravelcollective maybe not is available for laravel 5.5. You can check this issue from GitHub and find a workaround for collective in Laravel 5.5 https://github.com/LaravelCollective/html/issues/364

Try out the following statements:

php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear

It worked for me. Enjoy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!