How do I update the multiple field type programmatically?
Created 3 years ago by daviesgeek

I 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?

ryanthompson  —  3 years ago

The relational field types provide native Eloquent relations so you can use their native methods. I believe attach and sync are a couple of the methods.

https://laravel.com/docs/5.3/eloquent-relationships#inserting-and-updating-related-models