Add throttle middleware by default

This commit is contained in:
Jérémy Munsch 2024-02-13 16:41:26 +01:00
parent 407ffafd65
commit 87a76667d1
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -30,6 +30,7 @@ class Kernel extends HttpKernel
*/
protected $middlewareGroups = [
'web' => [
'throttle:40,1',
'htmlsanitize',
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
@ -41,6 +42,7 @@ class Kernel extends HttpKernel
],
'api' => [
'throttle:40,1',
\Illuminate\Routing\Middleware\ThrottleRequests::class . ':api',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],