Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Madda's avatar
Level 2

419 Session Expired

I was following the Laravel 5.7 From Scratch series and then I reached episode 20 and then haven't worked on the series for a while. Now I come back and I get the 419 error every time I try to submit a form. No code has been changed since the last time it was working. Was there an update on something that I missed?

I've added:

// in the head
<meta name="csrf-token" content="{{ csrf_token() }}">

// under the <form> tag
@csrf

// above the ending <body> tag
<script type="text/javascript" src="/js/app.js"></script>
0 likes
1 reply
tisuchi's avatar

Maybe you can try with the incognito window?

Before that, can you run cache:clear command to clear your cache?

php artisan cache:clear
1 like

Please or to participate in this conversation.