Repo for the search and displace core module including the interface to select files and search and displace operations to run on them. https://searchanddisplace.com
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.

82 lines
2.9 KiB

4 years ago
  1. <?php
  2. namespace App\Http;
  3. use Illuminate\Foundation\Http\Kernel as HttpKernel;
  4. class Kernel extends HttpKernel
  5. {
  6. /**
  7. * The application's global HTTP middleware stack.
  8. *
  9. * These middleware are run during every request to your application.
  10. *
  11. * @var array
  12. */
  13. protected $middleware = [
  14. \App\Http\Middleware\TrustProxies::class,
  15. \App\Http\Middleware\CheckForMaintenanceMode::class,
  16. \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
  17. \App\Http\Middleware\TrimStrings::class,
  18. \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
  19. ];
  20. /**
  21. * The application's route middleware groups.
  22. *
  23. * @var array
  24. */
  25. protected $middlewareGroups = [
  26. 'web' => [
  27. \App\Http\Middleware\EncryptCookies::class,
  28. \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
  29. \Illuminate\Session\Middleware\StartSession::class,
  30. // \Illuminate\Session\Middleware\AuthenticateSession::class,
  31. \Illuminate\View\Middleware\ShareErrorsFromSession::class,
  32. \App\Http\Middleware\VerifyCsrfToken::class,
  33. \Illuminate\Routing\Middleware\SubstituteBindings::class,
  34. ],
  35. 'api' => [
  36. 'throttle:60,1',
  37. \Illuminate\Routing\Middleware\SubstituteBindings::class,
  38. ],
  39. ];
  40. /**
  41. * The application's route middleware.
  42. *
  43. * These middleware may be assigned to groups or used individually.
  44. *
  45. * @var array
  46. */
  47. protected $routeMiddleware = [
  48. 'auth' => \App\Http\Middleware\Authenticate::class,
  49. 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
  50. 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
  51. 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
  52. 'can' => \Illuminate\Auth\Middleware\Authorize::class,
  53. 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
  54. 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
  55. 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
  56. 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
  57. 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
  58. ];
  59. /**
  60. * The priority-sorted list of middleware.
  61. *
  62. * This forces non-global middleware to always be in the given order.
  63. *
  64. * @var array
  65. */
  66. protected $middlewarePriority = [
  67. \Illuminate\Session\Middleware\StartSession::class,
  68. \Illuminate\View\Middleware\ShareErrorsFromSession::class,
  69. \App\Http\Middleware\Authenticate::class,
  70. \Illuminate\Routing\Middleware\ThrottleRequests::class,
  71. \Illuminate\Session\Middleware\AuthenticateSession::class,
  72. \Illuminate\Routing\Middleware\SubstituteBindings::class,
  73. \Illuminate\Auth\Middleware\Authorize::class,
  74. ];
  75. }