You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiselect currently does not support HasMany relationship, only belongsTo and belongsToMany.
There is sadly no way at the moment to add HasMany via Multiselect.
Just wanted to add that in the mean time I have hacked it to work with fillUsing(), but reverted all of that as it makes no sense.
Reason it makes no sense is because it is essentially re-parenting children, changing their parent_id which might already be set. I would close this issue sooner would I not have forgotten I submitted it.
I would support the decision to never implement this.
I have a
parent_id
on my model table so I have used that to create parent/child relations:Relations work just fine (tried and tested in Tinker).
I have tried using it like this:
And I can pick & choose units from the list, however when I want to save it says
The text was updated successfully, but these errors were encountered: