Open ahinkle opened 3 years ago
Looking for a solution to this as well for the exact same scenario.. the multi-level model saving seems to be a framework thing, I tried to implement it in https://github.com/yassilah/laravel-nova-nested-form.
Since Laravel Nova 4.0 inline creation for the HasOne field is supported. No external packages needed.
Hi all,
As posted in their README:
This project doesn't seem to be maintained. We are looking to add a simple inline
hasMany()
:Product -> has many related products
We would prefer this inline. however, this package seems abandoned and unsupported on Laravel Nova v3.
According to the Nova docs, the only supported inline relationships are
BelongsTo()
andMorphTo()
. Has anyone found a good alternative to accomplish this?We have a workaround in place now which is a bit hacky. A multi-select with the ID Value pair -- of course, it saves as JSON and we have to sort out the mess via model observers. It's a bit of a nightmare - hoping for a solution without having to dump Laravel Nova, entirely.