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

fenos's avatar

CSRF Token Middleware Issue

Hi guys, on this commit https://github.com/laravel/laravel/commit/c0019c6fcb552f533607a6737688a1bcdecb2873 the CSRF token middleware has been inserted to the main stack, so now every time I visit a route I get the error Illuminate \ Session \ TokenMismatchException on Get routes as well.

How can I handle that? Should I always explicitly write the except=csrf for all my routes?

0 likes
2 replies
fenos's avatar

Ops, thanks a lots I forgot to update that file :)

Please or to participate in this conversation.