improved email throttle

This commit is contained in:
Denis Duliçi
2022-09-14 11:53:22 +03:00
parent bf2f83981c
commit eb3b080ee8
7 changed files with 92 additions and 41 deletions

View File

@ -291,7 +291,10 @@ class Route extends Provider
});
RateLimiter::for('email', function (Request $request) {
return Limit::perMinute(config('app.throttles.email'));
return [
Limit::perDay(config('app.throttles.email.month'), 30),
Limit::perMinute(config('app.throttles.email.minute')),
];
});
}
}