Laravel Cooldown Package Brings Driver-Based Action Cooldown Management to Laravel

A developer has released Laravel Cooldown, an open-source package that manages action-based cooldowns — such as password resets, OTP sending, and payment retries — separately from Laravel's built-in request throttling. The package supports both cache and database storage drivers, which can be swapped without changing application code, using Laravel's Manager pattern. It offers native Eloquent model integration, allowing cooldowns to be attached directly to models with auto-resolved unique keys. A notable design choice ensures that cooldowns are only triggered after successful or redirected HTTP responses, preventing users from being penalized for failed form submissions. The project is available on GitHub and the author is seeking community feedback on its API, architecture, and potential new features.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in