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

robertp1980's avatar

Sanctum Api after login

I use Laravel with Sanctum API. But after i login with my credentials, laravel try to redirect to /dashboard with 404. I also tries to set the const HOME to '/api/user', but its not working.

0 likes
2 replies
pkboom's avatar

You might've accidentally changed login part. With your comment, it's hard to guess what happened actually. Recommend reinstalling sanctum with new laravel to test.

Please or to participate in this conversation.