Check session storage. It sounds like session is not working.
Also Did you do a complete upgrade? Or did you keep the laravel 10 inner workings.
Edit:
Also see https://laracasts.com/discuss/channels/laravel/role-middleware-in-laravel-11
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I've just updated our Laravel 10 application to version 11. Artisan works great. But when I try to load the home page, it redirects to the login page (expected). But it just keeps redirecting to /login over and over again and finally the browser errors with Too Many Redirects error. I can't find any hints in the code. Nothing really changed in our controllers. The routes file is the same as in Laravel 10.
artisan optimize and artisan optimize:clear.I'm completely stumped. Any suggestions?
Please or to participate in this conversation.