New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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
Laravel:5
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

lianhechx/laravel-nestedset

Nested Set Model for Laravel

34 0
kalnoy/nestedset

Nested Set Model for Laravel 5.7 and up

16,205,932 3,803
lychee-org/nestedset

Nested Set Model for Laravel 10.0 and up (fork with patches for Lychee)

378,821 1
aimeos/laravel-nestedset

Nested Set Model for Laravel

105,924 40
paulund/nestedset

Nested Set Model for Laravel 4-5

65,154 2

Version History

Version Released PHP Laravel License
v1.0.0 >=5.5.9 5.2.* MIT