Middleware
in
Interface Middleware
Represents a middleware component that processes an incoming HTTP request and either passes it to the next middleware or returns a response.
Table of Contents
Methods
Methods
handle()
Handle an incoming HTTP request.
public
handle(Request $request, Closure $next) : Response
Parameters
- $request : Request
-
The incoming HTTP request instance.
- $next : Closure
-
The next middleware to call in the pipeline.
Return values
Response —The HTTP response after processing the request.