Kernel.php 934 B

12345678910111213141516171819202122232425262728293031
  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\Cookie\Middleware\EncryptCookies',
  13. 'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
  14. 'Illuminate\Session\Middleware\StartSession',
  15. 'Illuminate\View\Middleware\ShareErrorsFromSession',
  16. 'App\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. }