You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Kernel.php 798B

12345678910111213141516171819202122232425262728293031
  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. ];
  16. /**
  17. * The application's route middleware.
  18. *
  19. * @var array
  20. */
  21. protected $routeMiddleware = [
  22. 'auth' => 'App\Http\Middleware\Authenticate',
  23. 'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
  24. 'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
  25. ];
  26. }