Fixed issues with duplicate entries for pivot records when updating belongs to many
Fixed issues with duplicate entries for pivot records when updating belongs to many

This may happen when saving a belongs-to-many related model on its relation, so instead, save the model separately and sync it.

czim/laravel-nestedupdater