-
Notifications
You must be signed in to change notification settings - Fork 11.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[11.x] Throw exception if named rate limiter and model property do not exist #50908
[11.x] Throw exception if named rate limiter and model property do not exist #50908
Conversation
I need to think about this one a bit. There could still be a virtual accessor for maxAttempts. |
d31af36
to
4d763f4
Compare
@taylorotwell thanks for merging that in. this one should be good to go. |
Not entirely sure why |
Heya! We were having some failures in the testsuite at the base branch. Could you rebase this PR, make sure tests pass and mark for review again? Thanks! |
ab0772c
to
9e02b18
Compare
@driesvints yessir! |
@driesvints @taylorotwell The deprecation of the Getting: |
@saade is this an app you upgraded to 11? Do you have the api rate limiter defined in any service providers? |
@mateusjatenee It is upgraded from L10 (using Shift), but it was running L11 perfectly in the last few weeks on a |
Hey, Did you call your RouteServiceProvider in the bootstrap/providers.php?
|
Based on what we talked regarding #50818
Handling strict mode is a bit annoying — if you have it set, it'd throw a bit of a cryptic error message since it'd fail with a different error. Another thing is that the
array_key_exists
solution doesn't deal with custom attributes.Maybe it's an opportunity to introduce a strict-safe
hasAttribute
method within Eloquent?