Add findOrFail #10
francoism90
started this conversation in
Ideas
Replies: 2 comments
-
|
Sure! You can call it |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@riasvdv See #11 , hopefully it's Ok, please let me know if any changes are needed. :) |
Beta Was this translation helpful? Give feedback.
0 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.
-
Laravel offers
Model::findOrFail(..), this is really useful as you don't need to write logic for it when the value is null.Would you consider adding it? I'll try to create a PR, but would like to know if this feature is wanted first. :)
Beta Was this translation helpful? Give feedback.
All reactions