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

jpbourdon's avatar

Laravel 5.2 token error

I am on local machine and debug on. I have a single table and form to new, edit and delete. I edit, create and delete without problem then suddenly I got this error message : TokenMismatchException in VerifyCsrfToken.php line 67: That seems to come randomly without logic. If I return home page and come back to this table, I can work normally again for some operations and then error again !

Can you help me. Thanks

0 likes
3 replies
squibby's avatar

Have you set the csrf token in your form?

jpbourdon's avatar

Yes, csrf token set in form...it's the reason that recording is working main of the time...

Snapey's avatar

have you altered the session lifetime?

Please or to participate in this conversation.