Skip to content

Commit

Permalink
should reindex appends attributes after unique them (#47519)
Browse files Browse the repository at this point in the history
  • Loading branch information
hungthai1401 authored Jun 21, 2023
1 parent 7d08805 commit 44ecf73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2125,9 +2125,9 @@ protected function transformModelValue($key, $value)
*/
public function append($attributes)
{
$this->appends = array_unique(
$this->appends = array_values(array_unique(
array_merge($this->appends, is_string($attributes) ? func_get_args() : $attributes)
);
));

return $this;
}
Expand Down

0 comments on commit 44ecf73

Please sign in to comment.