HasNesting
trait HasNesting (View source)
Traits
NodeTrait
Methods
string
getNestedSlug(string|null $locale = null)
Returns the combined slug for this item including all ancestors.
string
getNestedSlugAttribute()
No description
string
getAncestorsSlug(string|null $locale = null)
Returns the combined slug for all ancestors of this item.
string
getAncestorsSlugAttribute()
No description
static
saveTreeFromIds($nodeTree)
No description
static
flattenTree(array $nodeTree, int $parentId = null)
No description
newCollection(array $models = [])
{@inheritdoc}
Details
string
getNestedSlug(string|null $locale = null)
Returns the combined slug for this item including all ancestors.
string
getNestedSlugAttribute()
No description
string
getAncestorsSlug(string|null $locale = null)
Returns the combined slug for all ancestors of this item.
string
getAncestorsSlugAttribute()
No description
static
saveTreeFromIds($nodeTree)
No description
static
flattenTree(array $nodeTree, int $parentId = null)
No description
newCollection(array $models = [])
{@inheritdoc}