Can anyone help me on how to save many to many relationship? I have tasks, user can have many tasks and task can have many users (many to many), What I want to achieve is th
The sync function obliterates the exiting relationships and makes your array the entire list of relations. You want attach instead to add relations without removing others.