Kernel.php 980 B

123456789101112131415161718192021222324252627282930313233
  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. \App\Http\Middleware\EncryptCookies::class,
  14. \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
  15. \Illuminate\Session\Middleware\StartSession::class,
  16. \Illuminate\View\Middleware\ShareErrorsFromSession::class,
  17. \App\Http\Middleware\VerifyCsrfToken::class,
  18. ];
  19. /**
  20. * The application's route middleware.
  21. *
  22. * @var array
  23. */
  24. protected $routeMiddleware = [
  25. 'auth' => \App\Http\Middleware\Authenticate::class,
  26. 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
  27. 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
  28. ];
  29. }