Middleware
Also written: auth middleware, auth:sanctum
Code that runs before a controller and can let the request through or answer it itself. The auth middleware sends guests to /login.
Also written: auth middleware, auth:sanctum
Code that runs before a controller and can let the request through or answer it itself. The auth middleware sends guests to /login.