MiddlewareInterface
in
Interface for route middleware.
Middleware can inspect and modify requests before they reach controllers, and can halt request processing (e.g., for authentication failures).
Tags
Table of Contents
Methods
- handle() : bool
- Handle the incoming request.
Methods
handle()
Handle the incoming request.
public
handle() : bool
Return true to continue to the next middleware/controller. Return false to halt request processing (middleware should handle response).
Return values
bool —True if the request should continue, false to halt