laravel-nestedset icon indicating copy to clipboard operation
laravel-nestedset copied to clipboard

Effective tree structures in Laravel 4-8

Results 149 laravel-nestedset issues
Sort by recently updated
recently updated
newest added

We're heavily using this library as part of our application and we notice a slowdown in updating the _lft and _rgt. Below is the sample code that I saw in...

I've been looking through the documentation and have not been able to find a solution I have a table with about 500 nested categories. In another table related to that...

Hello. Any chance of returning ancestorsAndSelf for multiple models, e.g. when passing an array of ids? It would be useful when outcome must be multiple branches.

This PR updates the return type hint of the `scoped` method in the NodeTrait. This avoids confusion by IDEs and static analysis tools.

Hello community and thanks to creators for beautiful package! Suppose I have a tree: - parent1 -- child1 -- child2 --- grandson1 --- grandson2 - parent2 and so on... I...

If I try to get only active records, the tree don't builds properly. For example: Category::where(is_active, 1)->get()->toTree(); Please help somebody!

I went through the code, where I noticed that upon deleting the node the children are also got deleted, and the children are calculated based on _lft filed using between...

I have noticed the the getAncestors method on a node seems to give the ancestors in the order they were created. Is this behaviour intended? I was wanting to use...

Copypasted from another issue: The fix you provided makes impossibile to call parent relationship in toArray() or toJson() methods.... is there any official workaround for this? Or at least it...

I have created a `$node` like `$node = new Category();` and have saved the category. I then use the parent's children relationship to create a child node like this `$parent->children()->create($attributes);`...