diff --git a/src/Customers/UserCustomerRepository.php b/src/Customers/UserCustomerRepository.php index c2052ebac..a0d0dce2a 100644 --- a/src/Customers/UserCustomerRepository.php +++ b/src/Customers/UserCustomerRepository.php @@ -99,10 +99,14 @@ public function save(Customer $customer): void $ignoredKeys = array_merge($ignoredKeys, $user->model()->getAppends()); } - $user->data(array_merge( - $user->data()->all(), - Arr::except($customer->data()->all(), $ignoredKeys) - )); + if ($this->isUsingEloquentUsers()) { + + } else { + $user->data(array_merge( + $user->data()->all(), + Arr::except($customer->data()->all(), $ignoredKeys) + )); + } $user->save();