techcon/nestedsets
laravel-nestedsets
Package for manipuate nestedsets in Laravel without Eloquent ORM
How to use
- Create: $nestedset = Nestedsets::factory('TableName');
- Move:
- $nestedset->move('current_item_id', 'sibiling_item_id')->before(); // This move item before other element
- $nestedset->move('current_item_id', 'parent_item_id' or 0)->asChild(); // This move item as last element to parent
- Delete: $nestedset->deleteNode('item_id'); // This delete node and all childs
Related Packages
lychee-org/nestedset
Nested Set Model for Laravel 10.0 and up (fork with patches for Lychee)
354,218
1
lunarphp/nestedset
Nested Set Model for Laravel 12+ (Lunar-maintained fork of kalnoy/nestedset)
59,493
1