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

前端 未结 4 1661
野性不改
野性不改 2021-01-24 07:30

I\'am using laravel 5.5 and it gives me that \"The page has expired due to inactivity. Please refresh and try again.\" This is awkward because I never encounter this error. Same

相关标签:
4条回答
  • 2021-01-24 07:45

    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

    0 讨论(0)
  • 2021-01-24 07:54

    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
    
    0 讨论(0)
  • 2021-01-24 08:00

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

    0 讨论(0)
  • 2021-01-24 08:01

    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

    0 讨论(0)
提交回复
热议问题