CustomerMiddleware
extends Middleware
in package
Customer authentication middleware.
Ensures the current user is authenticated as a customer (ordering user). Redirects to the storefront login page for the appropriate business.
Tags
Table of Contents
Methods
- handle() : bool
- Handle the request by checking customer authentication.
Methods
handle()
Handle the request by checking customer authentication.
public
handle([array<string|int, mixed> $params = [] ]) : bool
Parameters
- $params : array<string|int, mixed> = []
-
Route parameters (expects 'slug')