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

denis_zm's avatar

Auth issue. After login with right credentials laravel redirects to admin dashboard then again to login.

After successful login laravel redirects to /admin , then again to the login page. If I remove login from $except variable in Middleware/VerifyCsrfToken I am getting TokenMismatchException in VerifyCsrfToken.php line 67. Everything works perfectly on the local server, this error only on a production server.

I have a _token hidden field in my login form.

Any ideas?

Thank you!

0 likes
0 replies

Please or to participate in this conversation.