Documentation

Kernel extends Kernel
in package

Class Kernel

Table of Contents

$middleware  : array<string|int, mixed>
The application's global HTTP middleware stack.
$middlewareGroups  : array<string|int, mixed>
The application's route middleware groups.
$routeMiddleware  : array<string|int, mixed>
The application's route middleware.

Properties

$middleware

The application's global HTTP middleware stack.

protected array<string|int, mixed> $middleware = [ // AppHttpMiddlewareTrustHosts::class, AppHttpMiddlewareTrustProxies::class, FruitcakeCorsHandleCors::class, AppHttpMiddlewarePreventRequestsDuringMaintenance::class, IlluminateFoundationHttpMiddlewareValidatePostSize::class, AppHttpMiddlewareTrimStrings::class, IlluminateFoundationHttpMiddlewareConvertEmptyStringsToNull::class, ]

These middleware are run during every request to your application.

$middlewareGroups

The application's route middleware groups.

protected array<string|int, mixed> $middlewareGroups = ['web' => [ AppHttpMiddlewareEncryptCookies::class, IlluminateCookieMiddlewareAddQueuedCookiesToResponse::class, IlluminateSessionMiddlewareStartSession::class, // IlluminateSessionMiddlewareAuthenticateSession::class, IlluminateViewMiddlewareShareErrorsFromSession::class, AppHttpMiddlewareVerifyCsrfToken::class, IlluminateRoutingMiddlewareSubstituteBindings::class, ], 'api' => ['throttle:api', IlluminateRoutingMiddlewareSubstituteBindings::class]]

$routeMiddleware

The application's route middleware.

protected array<string|int, mixed> $routeMiddleware = ['auth' => AppHttpMiddlewareAuthenticate::class, 'auth.basic' => IlluminateAuthMiddlewareAuthenticateWithBasicAuth::class, 'cache.headers' => IlluminateHttpMiddlewareSetCacheHeaders::class, 'can' => IlluminateAuthMiddlewareAuthorize::class, 'guest' => AppHttpMiddlewareRedirectIfAuthenticated::class, 'password.confirm' => IlluminateAuthMiddlewareRequirePassword::class, 'signed' => IlluminateRoutingMiddlewareValidateSignature::class, 'throttle' => IlluminateRoutingMiddlewareThrottleRequests::class, 'verified' => IlluminateAuthMiddlewareEnsureEmailIsVerified::class]

These middleware may be assigned to groups or used individually.

Search results