#Use axios with inertia/Breeze Laravel 11
2 messages · Page 1 of 1 (latest)
I tried using it in web.php inside this:
Route::middleware([
'auth:sanctum',
'verified'
])->group(function () {...});
but still get 401
2 messages · Page 1 of 1 (latest)
Since it's an Inertia app, the easiest would be to just use web.php routes. Otherwise you'd need to make your API routes stateful, hence you're getting a 401 probably
I tried using it in web.php inside this:
Route::middleware([
'auth:sanctum',
'verified'
])->group(function () {...});
but still get 401