Kernel.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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
  10. */
  11. protected $middleware = [
  12. \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
  13. ];
  14. /**
  15. * The application's route middleware groups.
  16. *
  17. * @var array
  18. */
  19. protected $middlewareGroups = [
  20. 'web' => [
  21. \App\Http\Middleware\EncryptCookies::class,
  22. \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
  23. \Illuminate\Session\Middleware\StartSession::class,
  24. \Illuminate\View\Middleware\ShareErrorsFromSession::class,
  25. \App\Http\Middleware\VerifyCsrfToken::class,
  26. ],
  27. ];
  28. /**
  29. * The application's route middleware.
  30. *
  31. * @var array
  32. */
  33. protected $routeMiddleware = [
  34. 'auth' => \App\Http\Middleware\Authenticate::class,
  35. 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
  36. 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
  37. 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
  38. ];
  39. }