Kernel.php 998 B

1234567891011121314151617181920212223242526272829303132
  1. <?php namespace App\Http;
  2. use Illuminate\Foundation\Http\Kernel as HttpKernel;
  3. class Kernel extends HttpKernel
  4. {
  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\Foundation\Http\Middleware\VerifyPostSize',
  13. 'Illuminate\Cookie\Middleware\EncryptCookies',
  14. 'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
  15. 'Illuminate\Session\Middleware\StartSession',
  16. 'Illuminate\View\Middleware\ShareErrorsFromSession',
  17. 'App\Http\Middleware\VerifyCsrfToken',
  18. ];
  19. /**
  20. * The application's route middleware.
  21. *
  22. * @var array
  23. */
  24. protected $routeMiddleware = [
  25. 'auth' => 'App\Http\Middleware\Authenticate',
  26. 'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
  27. 'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
  28. ];
  29. }