Documentation

Kernel extends Kernel
in package

Table of Contents

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

Properties

$middleware

The application's global HTTP middleware stack.

protected array<int, class-string|string> $middleware = [ \App\Http\Middleware\RequireInstalled::class, // \App\Http\Middleware\TrustHosts::class, \App\Http\Middleware\TrustProxies::class, \Illuminate\Http\Middleware\HandleCors::class, \App\Http\Middleware\PreventRequestsDuringMaintenance::class, \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, \App\Http\Middleware\TrimStrings::class, \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, ]

These middleware are run during every request to your application.

$middlewareGroups

The application's route middleware groups.

protected array<string, array<int, class-string|string>> $middlewareGroups = ['web' => [\App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Routing\Middleware\SubstituteBindings::class], 'api' => [\Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, 'throttle:api', \Illuminate\Routing\Middleware\SubstituteBindings::class]]

$routeMiddleware

The application's route middleware.

protected array<string, class-string|string> $routeMiddleware = [ 'auth' => \App\Http\Middleware\Authenticate::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, //'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 'can' => \App\Http\Middleware\Authorize::class, 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, ]

These middleware may be assigned to groups or used individually.

Search results