Skip to content

Commit

Permalink
updated to use package method to get name of lft node
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldwight authored and ifox committed Jan 10, 2024
1 parent 6d14da9 commit 1fcc8f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Behaviors/HasNesting.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getNestedSlugAttribute()
*/
public function getAncestorsSlug(?string $locale = null): string
{
return $this->getAncestors()->sortBy('_lft')
return $this->getAncestors()->sortBy($this->getLftName())
->map(function ($i) use ($locale) {
return $i->getSlug($locale);
})
Expand Down

0 comments on commit 1fcc8f3

Please sign in to comment.