One To Many (Latest) #607
-
Hello Guys. I have a database that contains the table as below, in case 1 Asset has many conditions, example asset_1 can have asset_con_1, asset_con_2, asset_con_3 and etc... here is the model function
here is the field in the update operation
here is the result The question is how to achieve this UI |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @cheadevit The field shows multiple because ... it's a multiple relation. (BelongsToMany) You can try Let me know how it goes. Cheers |
Beta Was this translation helpful? Give feedback.
Hey @cheadevit
The field shows multiple because ... it's a multiple relation. (BelongsToMany)
You can try
multiple => false
in your field, but not sure if you don't need to overwrite the saving process because Backpack is expecting an array for a multiple relation, even if it's an array with only one element.Let me know how it goes.
Cheers