Have you seen our video tutorials? Check 'em out!

How do I update the multiple field type programmatically?

daviesgeek - 1 week ago

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 - 1 week 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