Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Feb 2, 2024
1 parent 7f3f65b commit 07b4b15
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Fields/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 07b4b15

Please sign in to comment.