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

VinayKesharwani's avatar

Laravel Sanctum login issue

Hi,

I have a Laravel project where I am using sanctum for authenticating my SPA application. During laravel 10 it worked fine, but after update to laravel 11, I am facing some strange issues. Whenever I logout and login again with different account, I need to refresh the page and then only I am able to login. However, it worked fine in laravel 10.

I also checked the documentation for any changes required for sanctum but couldn't find any.

Have anyone else faced similar issues?

0 likes
0 replies

Please or to participate in this conversation.