Replies: 2 comments 2 replies
-
You can already do: $userModel->saveOrFail(); |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can create it for your models. A function in a base model or in a trait
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I didn't do much research. That's how I'm using it at the moment:
But this is not very convenient, especially if you do not use the default connection.
I often forget the
connection
method, or need to find the corresponding name, if the name has been modified, and a large number of names used is prone to omission.But if you already know which models to manipulate, why not just use the models to handle them?
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions