auth middleware is working on a local server but it's returning a 401 error on the shared host.
Route::apiResource('categories', CategoryController::class)->middleware(['auth', 'isAdmin']);
Asked
Active
Viewed 110 times
0

Eido Khudyda
- 27
- 5
-
There could be tons of reasons. Have you tried debugging this at all? First place to look would be the session (e.g. is the cookie sent and received correctly? does it keep the same value? Is the session saved correctly for the given session driver?) – apokryfos Oct 17 '22 at 07:21