Not really, where should I set that? I'm using laravel 11, so there are some files like Kernel.php that have been excluded in this version.
Aug 2, 2025
4
Level 1
Route [login] not found Error
When I login using a login form or google auth from my react frontend, the api call is successful and I can access my dashboard. The problem is, from here, every route under auth:sanctum returns a 401 Unauthorized error, with the log Route [login] not found. This is happening even when I use postman. I have set the session domain and sanctum stateful domain as the base url for my website, and my auth.php file has;'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ],
'api' => [
'driver' => 'sanctum',
'provider' => 'users',
],
],...my routes outside auth:sanctum are correctly being reached, so cors cannot be the issue. Why aren't my sanctum protected routes working?
Please or to participate in this conversation.