Backport Eloquent BelongsToMany::sync function signature