How do I update the multiple field type programmatically?
Created 7 years ago by daviesgeekI have a multiple field type that contains a collection of users. I'm trying to add to the collection programmatically, but can't seem to get the field to actually update. How do I do that?
The relational field types provide native Eloquent relations so you can use their native methods. I believe
attach
andsync
are a couple of the methods.https://laravel.com/docs/5.3/eloquent-relationships#inserting-and-updating-related-models