21-06-2022

Laravel 419 error after Login?

If you ever encountered 419 Page expired error message after login, you are at the right place. The problem is the following: your session expired :(

Don't worry, here comes the solution:

Check the login page, add the following line to the <head> part.

<meta http-equiv="refresh" 
content="{{ config('session.lifetime') * 60 }}"
>

This tiny line will refresh once the session lifetime expired.

Have a nice day!

© 2022 PappZ. All rights reserved.