Backport Eloquent BelongsToMany::sync function signature
Merge pull request #192 from ilesinge/belongstomany_sync

Backport Eloquent BelongsToMany::sync function signature