Skip to content

Commit 14947a6

Browse files
authored
Update BelongsToMany.php
1 parent 5a55879 commit 14947a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Relations/BelongsToMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function sync($ids, $detaching = true)
126126

127127
// See issue #256.
128128
if ($current instanceof Collection) {
129-
$current = $ids->modelKeys();
129+
$current = $current->modelKeys();
130130
}
131131

132132
$records = $this->formatSyncList($ids);

0 commit comments

Comments
 (0)