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

vincej's avatar
Level 15

Where is the location of the 419 Session Expired Blade file ?

I need to modify it and I can't find it anywhere, and Php Storm can't find it either. Thanks !

0 likes
6 replies
vincej's avatar
Level 15

Is there some way of applying a modification without changing the core file, such that when I upgrade Laravel, I do not loose my changes ??

mstnorris's avatar

I think if you were to create (or publish through the command above) a file called 419.blade.php inside your resources/views/errors directory then that will of course persist even if the 419 error view changes in the Laravel core. You will have to manually update the file if it contains anything new that you want.

vincej's avatar
Level 15

Don't quite follow. I want to change the message and the link to 'home'. When in the future I upgrade to say, Laravel 5.8, you seem to suggest that this will not over write the changes I make ?

Snapey's avatar

ok now?

run the vendor:publish command

It copies the pages into your application space where you can edit them how you like.

Future upgrades will not mess with them.

vincej's avatar
Level 15

Brilliant ! Thank you ! Now I understand. :o)

Please or to participate in this conversation.