#Use axios with inertia/Breeze Laravel 11

2 messages · Page 1 of 1 (latest)

jaunty blade
#

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

merry kite
#

I tried using it in web.php inside this:

Route::middleware([
'auth:sanctum',
'verified'
])->group(function () {...});

but still get 401