Middleware

The package provides a set of middleware to secure your pages from unauthenticated access:

  • sanctum:auth - middleware for pages that require an authenticated user

  • sanctum:guest - middleware for pages that require guest user

  • Global middleware - requires authentication for all pages except login and error page