Replies: 1 comment 2 replies
-
Isn't it a programmatic error that you send |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey 👋
I would like to share my thought about throwing an error when args of this methods (find and findBy) are undefined
Since there are already explicit methods that do this (findByOrFail and findOrFail), wouldn't it make more sense to allow the caller to decide whether to throw or not?
This would avoid checking whether a given value is nullish to perform this type of operation and make the code more concise.
Let me know if this is valid for open a PR
Beta Was this translation helpful? Give feedback.
All reactions