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 tried to use this package in combination with Livewire. It works great until my tree has child elements. That's when I get a 502 error for some reason. Strange...

I am using the following to create a new node. ``` $add = new mCategory; $parent = mCategory::findOrFail(4); $add->category_name = $request->category_name; $add->notes = $request->notes; $add->parent_id = $parent->category_id; #### This is...

Hello, i have a problem when adding nestedset to running project. my project using `parentid` as a parent_id key so i add this line into my model ``` public function...

I am using the following query to get the specific level of rows: ``` return File::withDepth()->having('depth', '=', $currentDepth)->get()->toTree(); ``` After hitting a certain amount of records (currently there are about...

https://github.com/lazychaser/laravel-nestedset/blob/v5/src/NodeTrait.php#L764 conflicts with https://github.com/spatie/laravel-event-sourcing/blob/main/src/Projections/Projection.php error: ``` `ModelName` projection is not writeable at this point, please call `$model->writeable()` first ```

I have implemented a Eloquent class which uses the trait `NodeTrait`. Deleting objects of such a class fails with an `InvalidArgumentException` exception `"Model must be node."` in [`BaseRelation::__construct()`](https://github.com/lazychaser/laravel-nestedset/blob/abf4c8602977874368a79eb6648d5d0014b613bb/src/BaseRelation.php#L40) due to...

how to use it with many to many relationship with pivot table ?

Because this package relies on calculations on the code side, the tree will always be in a broken state when simultaneously inserts are performed (duplicates by _lft will occur). I...

I've added an optional callback to `fixTree()` `countErrors()` and relative methods so a user can configure the query My main use case i to disable global scopes (I've added tests...

I want to get specified childs and render them as tree but seems it wont work, it always required parent to show all of childs, how can i do that?...