RateLimiter's attempt() accepts a fourth parameter for the "decay"
💡 The 'attempt()' method of the RateLimiter that comes with @laravelphp has an optional fourth argument to specify the decay.
Both examples dispatch max 12 events per minute, but the latter spread the events throughout the minute. Incredible, isn't it? 🤩
#Laravel #PHP #webdev