| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- namespace App\Http;
- use Illuminate\Foundation\Http\Kernel as HttpKernel;
- /**
- * HTTP 内核类
- *
- * 负责处理 HTTP 请求的中间件配置和路由中间件管理,继承自 Laravel 的 HTTP 内核
- */
- class Kernel extends HttpKernel
- {
- /**
- * The application's global HTTP middleware stack.
- *
- * @var array<int, class-string|string>
- */
- protected $middleware = [
- // ... existing code ...
- ];
- /**
- * The application's route middleware groups.
- *
- * @var array<string, array<int, class-string|string>>
- */
- protected $middlewareGroups = [
- 'web' => [
- // ... existing code ...
- ],
- 'api' => [
- // ... existing code ...
- ],
- ];
- /**
- * The application's middleware aliases.
- *
- * @var array<string, class-string|string>
- */
- protected $middlewareAliases = [
- // ... existing code ...
- ];
- /**
- * The bootstrap classes for the application.
- *
- * @var array
- */
- protected $bootstrappers = [
- \Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables::class,
- \Illuminate\Foundation\Bootstrap\LoadConfiguration::class,
- \Illuminate\Foundation\Bootstrap\HandleExceptions::class,
- \Illuminate\Foundation\Bootstrap\RegisterFacades::class,
- \Illuminate\Foundation\Bootstrap\RegisterProviders::class,
- \Illuminate\Foundation\Bootstrap\BootProviders::class
- ];
- /**
- * The application's route middleware.
- *
- * These middleware may be assigned to groups or used individually.
- *
- * @var array<string, class-string|string>
- */
- protected $routeMiddleware = [
- // ... existing middleware ...
- ];
- }
|