Sync Records With Default Values in Pivot Tables, Call to undefined method syncWithPivotDefaults()
PHP Snippet 1:
$user->roles()->syncWithPivotValues([1, 2, 3], ['active' => true]);
$user->roles()->syncWithPivotValues([1, 2, 3], ['active' => true]);