Advanced Nested Relationship Form builder
I have EventStaff Model Thats HasOne EventStaffDetail using
staffDetails()
method
Inside EventStaffDetail Model I have positions()
method thats morphToMany StaffPosition
So From EventStaffResource Iam able to point to staffDetails Relation by passing relationship method to section
1 Reply
The problem now that when i save the form i got this error so it's ignore morp relation and try to update main staff_positions table
So what is wrong and suggestions?
By Using
Select or CheckboxList
i was able to use it but what if i have pivot columns ? how can i append pivot data ?