Kernel.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. namespace App\Http;
  3. use Illuminate\Foundation\Http\Kernel as HttpKernel;
  4. class Kernel extends HttpKernel
  5. {
  6. /**
  7. * The application's global HTTP middleware stack.
  8. *
  9. * @var array<int, class-string|string>
  10. */
  11. protected $middleware = [
  12. // ... existing code ...
  13. ];
  14. /**
  15. * The application's route middleware groups.
  16. *
  17. * @var array<string, array<int, class-string|string>>
  18. */
  19. protected $middlewareGroups = [
  20. 'web' => [
  21. // ... existing code ...
  22. ],
  23. 'api' => [
  24. // ... existing code ...
  25. ],
  26. ];
  27. /**
  28. * The application's middleware aliases.
  29. *
  30. * @var array<string, class-string|string>
  31. */
  32. protected $middlewareAliases = [
  33. // ... existing code ...
  34. ];
  35. /**
  36. * The bootstrap classes for the application.
  37. *
  38. * @var array
  39. */
  40. protected $bootstrappers = [
  41. \Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables::class,
  42. \Illuminate\Foundation\Bootstrap\LoadConfiguration::class,
  43. \Illuminate\Foundation\Bootstrap\HandleExceptions::class,
  44. \Illuminate\Foundation\Bootstrap\RegisterFacades::class,
  45. \Illuminate\Foundation\Bootstrap\RegisterProviders::class,
  46. \Illuminate\Foundation\Bootstrap\BootProviders::class,
  47. \App\Bootstrap\DisableMigrationCommands::class,
  48. ];
  49. /**
  50. * The application's route middleware.
  51. *
  52. * These middleware may be assigned to groups or used individually.
  53. *
  54. * @var array<string, class-string|string>
  55. */
  56. protected $routeMiddleware = [
  57. // ... existing middleware ...
  58. 'login.check' => \App\Http\Middleware\LoginCheck::class,
  59. ];
  60. }