Skip to content

Commit

Permalink
re-add locale index
Browse files Browse the repository at this point in the history
  • Loading branch information
nivv committed Jun 19, 2024
1 parent 39fd896 commit 88bdce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/HasPaths.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function getPathsAttribute(): Collection
return $slugGroups;
}

foreach ($supportedLocales as $locale) {
foreach ($supportedLocales as $locale => $item) {
$slugGroups->push([
$locale => $this->slugs->where('locale', $locale)->pluck('slug')->map(function ($item) {
return '/'.$item;
Expand Down

0 comments on commit 88bdce4

Please sign in to comment.