class Kernel implements Kernel (View source)
protected Application | $app | The application implementation. | |
protected Router | $router | The router instance. | |
protected array | $bootstrappers | The bootstrap classes for the application. | |
protected array | $middleware | The application's middleware stack. | |
protected array | $middlewareGroups | The application's route middleware groups. | |
protected array | $routeMiddleware | The application's route middleware. | |
protected array | $middlewarePriority | The priority-sorted list of middleware. |
void | __construct(Application $app, Router $router) Create a new HTTP kernel instance. | |
Response | handle(Request $request) Handle an incoming HTTP request. | |
Response | sendRequestThroughRouter(Request $request) Send the given request through the middleware / router. | |
void | bootstrap() Bootstrap the application for HTTP requests. | |
Closure | dispatchToRouter() Get the route dispatcher callback. | |
void | terminate(Request $request, Response $response) Call the terminate method on any terminable middleware. | |
void | terminateMiddleware(Request $request, Response $response) Call the terminate method on any terminable middleware. | |
array | gatherRouteMiddleware(Request $request) Gather the route middleware for the given request. | |
array | parseMiddleware(string $middleware) Parse a middleware string to get the name and parameters. | |
bool | hasMiddleware(string $middleware) Determine if the kernel has a given middleware. | |
$this | prependMiddleware(string $middleware) Add a new middleware to beginning of the stack if it does not already exist. | |
$this | pushMiddleware(string $middleware) Add a new middleware to end of the stack if it does not already exist. | |
array | bootstrappers() Get the bootstrap classes for the application. | |
void | reportException(Exception $e) Report the exception to the exception handler. | |
Response | renderException(Request $request, Exception $e) Render the exception to a response. | |
array | getMiddlewareGroups() Get the application's route middleware groups. | |
array | getRouteMiddleware() Get the application's route middleware. | |
Application | getApplication() Get the Laravel application instance. |
Create a new HTTP kernel instance.
Handle an incoming HTTP request.
Send the given request through the middleware / router.
Bootstrap the application for HTTP requests.
Get the route dispatcher callback.
Call the terminate method on any terminable middleware.
Call the terminate method on any terminable middleware.
Gather the route middleware for the given request.
Parse a middleware string to get the name and parameters.
Determine if the kernel has a given middleware.
Add a new middleware to beginning of the stack if it does not already exist.
Add a new middleware to end of the stack if it does not already exist.
Get the bootstrap classes for the application.
Report the exception to the exception handler.
Render the exception to a response.
Get the application's route middleware groups.
Get the application's route middleware.
Get the Laravel application instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Foundation/Http/Kernel.html