I am facing this error with a new Laravel application I'm working: The page has expired due to inactivity. Please refresh and try again." It is on POST request, I have 419 http status as output.
The POST request works correctly when using "php artisan serve" to launch a built-in server.
As I use laragon, I use virtual host auto-created by it (Auto virtual host: ON). The crsf token system seems not to work with virtual host address???
All clearing commands were already executed but haven't solved it:
php artisan clear-compiled
php artisan optimize
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear