Kernel.php 873 B

123456789101112131415161718192021222324252627282930313233
  1. <?php namespace App\Http;
  2. use Exception;
  3. use Illuminate\Foundation\Http\Kernel as HttpKernel;
  4. class Kernel extends HttpKernel {
  5. /**
  6. * The application's global HTTP middleware stack.
  7. *
  8. * @var array
  9. */
  10. protected $middleware = [
  11. 'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
  12. 'Illuminate\Cookie\Middleware\EncryptCookies',
  13. 'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
  14. 'Illuminate\Session\Middleware\StartSession',
  15. 'Illuminate\View\Middleware\ShareErrorsFromSession',
  16. 'Illuminate\Foundation\Http\Middleware\VerifyCsrfToken',
  17. ];
  18. /**
  19. * The application's route middleware.
  20. *
  21. * @var array
  22. */
  23. protected $routeMiddleware = [
  24. 'auth' => 'App\Http\Middleware\Authenticate',
  25. 'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
  26. 'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
  27. ];
  28. }