Add method to Eloquent to save and return a Model #41336
Unanswered
gisostallenberg
asked this question in
Ideas
Replies: 2 comments
-
I'd rather see this as an opt-in thing on
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Only if it would be forced to throw exception on failure. |
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.
-
It would be neat if we could save a model and have it returned after save.
I know the create method exists, but it does not work well with relations.
The following macro works well:
But this could also be added to the builder by default:
This would allow for the following:
Beta Was this translation helpful? Give feedback.
All reactions