Kernel.php 858 B

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