techcon/nestedsets

Package for manipuate nestedsets in Laravel without Eloquent ORM
9 1
Install
composer require techcon/nestedsets
Latest Version:v1.0.0
PHP:>=5.5.9
License:MIT
Last Updated:Jul 5, 2016
Links: GitHub  ·  Packagist
Maintainer: quadrogod

laravel-nestedsets

Package for manipuate nestedsets in Laravel without Eloquent ORM

How to use

  1. Create: $nestedset = Nestedsets::factory('TableName');
  2. Move:
  3. $nestedset->move('current_item_id', 'sibiling_item_id')->before(); // This move item before other element
  4. $nestedset->move('current_item_id', 'parent_item_id' or 0)->asChild(); // This move item as last element to parent
  5. 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
paulund/nestedset

Nested Set Model for Laravel 4-5

65,031 2
kalnoy/nestedset

Nested Set Model for Laravel 5.7 and up

15,255,277 3,803
lianhechx/laravel-nestedset

Nested Set Model for Laravel

34 0
lunarphp/nestedset

Nested Set Model for Laravel 12+ (Lunar-maintained fork of kalnoy/nestedset)

59,493 1