Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

wim91's avatar

Is it possible to limit the time per request via RateLimiter in seconds in Laravel 10?

I want to limit ajax requests, for example 1 request per 5 seconds no more often, I use Laravel 10 version. I read that in Laravel 10 and earlier there is a perMinute method, but there is no perSecond method, which appeared in versions 11+... The question is, is it possible to somehow add a time limit in seconds without updating Laravel to version 11+?

0 likes
0 replies

Please or to participate in this conversation.