0

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']);

  • 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

0 Answers0