Kernel
class Kernel implements Kernel (View source)
Methods
void
Response
handle(
Request $request)
Handle an incoming HTTP request.
void
terminate(
Request $request,
Response $response)
Call the terminate method on any terminable 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.
void
bootstrap()
Bootstrap the application for HTTP requests.
bool
hasMiddleware(
string $middleware)
Determine if the kernel has a given middleware.
getApplication()
Get the Laravel application instance.
Details
at line line 74
void
__construct(
Application $app,
Router $router)
Create a new HTTP kernel instance.
at line line 142
void
terminate(
Request $request,
Response $response)
Call the terminate method on any terminable middleware.
at line line 200
$this
prependMiddleware(
string $middleware)
Add a new middleware to beginning of the stack if it does not already exist.
at line line 215
$this
pushMiddleware(
string $middleware)
Add a new middleware to end of the stack if it does not already exist.
at line line 256
bool
hasMiddleware(
string $middleware)
Determine if the kernel has a given middleware.