diff --git a/src/Fields/File.php b/src/Fields/File.php index d0f8d3b6..fd3ba1cc 100644 --- a/src/Fields/File.php +++ b/src/Fields/File.php @@ -198,10 +198,7 @@ public function persist(Request $request, Model $model, mixed $value): void return $this->store($request, $model, $file)['value']; }, $files); - $value = array_replace( - (array) $value, - $this->mergePivotValues($ids) - ); + $value += $this->mergePivotValues($ids); $this->resolveHydrate($request, $model, $value);