Skip to content

Commit

Permalink
Merge pull request #146 from y1n0/patch-1
Browse files Browse the repository at this point in the history
call values() on the sorted array to reset the keys
  • Loading branch information
cviebrock authored Jun 6, 2024
2 parents 9c66ec7 + 25da590 commit 1a3498e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Taggable.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public static function allTags(): array
/** @var \Illuminate\Database\Eloquent\Collection $tags */
$tags = static::allTagModels();

return $tags->pluck('name')->sort()->all();
return $tags->pluck('name')->sort()->values()->all();
}

/**
Expand Down

0 comments on commit 1a3498e

Please sign in to comment.