Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Pass decay seconds or minutes like hour and day #51054

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

jimmypuckett
Copy link
Contributor

The existing perHour & perDay methods allow passing in an optional decayHours/decayDays, but perSecond & perMinute do not follow the same pattern. I know that there is the perMinutes, but it flips decay & max.

This is just a quick PR to make the API consistent.

NOTE: I am re-opening #51053 from my personal account to allow maintainer edits since the first PR was from our company account.

@taylorotwell taylorotwell merged commit 645f57a into laravel:11.x Apr 15, 2024
59 checks passed
@robin-dongbin
Copy link

@jimmypuckett I think we should delete function perMinutes after this merged, maybe in 12.x?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants