i am trying to submit a form with some fields and showing this error “The page has expired due to inactivity. Please refresh and try again.” so when I look my form very carefully then i found that one CSRF token verification is missing.
- you have to do one thing add @csrf or {{ csrf_field() }} in your form.
- and then run below command to clear your app cache
php artisan cache:clear
php artisan r:cache
php artisan view:clear
References :
Laravel 5.5 CRUD Tutorial, Introduction And Agenda Overview, Laravel Training Part – 1 DevopsSchool
Latest posts by Chandan Kumar (see all)
- Top 10 DevOps Blogs and Websites To Follow in 2023 - December 13, 2022
- How To Set Up Apache Virtual Hosts on Ubuntu 20.04.2 LTS - October 28, 2021
- How to Fix ” Vue packages version mismatch:” error in Laravel 5.5 - April 15, 2021