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

I want to create query to output all posts belongs to one category with pagination of these posts. I did like below, but anyway on output I have simple Illuminate\Database\Eloquent\Collection...

Hi, eager loading of parent seems to work in tinker but when I use in a Controller method ``` $categories = Category::with([ 'parent', 'exam', ])->get(); ``` I do not receive...

Is it possible when saving, to pass for example `position 5 ` and the node to be placed on position 5 and move the existing one to position 6 and...

Is there any way to include the Depth when doing getNextSibling? Sometimes I have to do something like `$q->parent->parent->getNextSibling()` and it does not include the depth.

First, thank you for the library. I appreciate the amount of effort that goes into maintaining. **Expected Outcome:** Get all root nodes from a model with descendants and relations (such...

If you delete the middle of the tree, the descendants of that tree will be deleted. How can I link the descendants to the target parent without deleting the descendants?...

This adds support for Laravel 7 while maintaining support for Laravel 5.7, 5.8, or 6.x.

Hi. I want to rebuild whole database at once. When I pass array to rebuildTree method, it returns "Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException". Please can you help? Here is the treeData passed: [{ "id":...

fix: Typo in README.md

If you have set up like this ``` - Root -- Child 1 --- Sub child 1 ``` And you just want to remove Sub Child 1 and place it...