Skip to content

Glossary: Laravel

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.

Where the book teaches it

Related terms

RouteAuthenticationSanctum