Kernel.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. 'api' => [
  28. 'throttle:60,1',
  29. ],
  30. ];
  31. /**
  32. * The application's route middleware.
  33. *
  34. * @var array
  35. */
  36. protected $routeMiddleware = [
  37. 'auth' => \App\Http\Middleware\Authenticate::class,
  38. 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
  39. 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
  40. 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
  41. ];
  42. }