Aug 2, 2025
0
Level 2
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+?
Please or to participate in this conversation.