diff --git a/src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php b/src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php index 48444a52db85..c39398e6cd36 100644 --- a/src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php +++ b/src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php @@ -102,7 +102,7 @@ public function sync($ids, $detaching = true) $detach = array_diff($current, array_keys($records)); if (count($detach) > 0) { - $this->detach($detach); + $this->detach($detach, false); $changes['detached'] = $this->castKeys($detach); }