laravel-nestedset
                                
                                 laravel-nestedset copied to clipboard
                                
                                    laravel-nestedset copied to clipboard
                            
                            
                            
                        Effective tree structures in Laravel 4-8
### Problem When deleting an entity by the `deleted` event, all its child elements of all levels are [deleted](https://github.com/lazychaser/laravel-nestedset/blob/v6/src/NodeTrait.php#L56). When searching for child elements, a query with a filter by...
on my model, I have a global scope: ``` static::addGlobalScope('visibility', function (Builder $builder) { $builder->where('visibility', 'public'); }); ``` Querying Model::isBroken() generates a broken query: ``` where `models`.`visibility` = public and...
I migrated from [laravel-adjacency-list](https://github.com/staudenmeir/laravel-adjacency-list) due to the read-performance benefits. However, I am missing some relations, especially the `siblings()` relationship. I know I can simply get the siblings, but I need...
i have a project which has tables and data exist when i set up migration needed in nestedset package _lft and _rgt default is 0 when i try to update...
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'categories.deleted_at' in 'where clause' (SQL: select (select count(1) from `categories` as `c1`, `categories` `c2` where `categories`.`deleted_at` is null and `c1`.id < `c2`.id and...
Upon a fresh installation of laravel 11 along with this package, upon migration I recieve the errror nestedSet(); method not found. Simply trying to run this migration : Schema::create('categories', function...
Deprecated: Kalnoy\Nestedset\NodeTrait::create(): Implicitly marking parameter $parent as nullable is deprecated, the explicit nullable type must be used instead in /var/www/backend/vendor/kalnoy/nestedset/src/NodeTrait.php on line 754 Deprecated: Kalnoy\Nestedset\NodeTrait::replicate(): Implicitly marking parameter $except as...
Hi, I'm using spatie/laravel-translatable to localize my data. I would like to use it for nested tree too. Basically, instead of using a plain string, they store variants as JSON...
|--node A |----|node B |----|---|node C |----|node D |----|node E when delete node C , node D jump to be under node B , this according in error in lft...