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

lianhechx/laravel-nestedset

Nested Set Model for Laravel

34 0
kalnoy/nestedset

Nested Set Model for Laravel 5.7 and up

14,635,492 3,803
laravel-doctrine/fluent

A fluent PHP mapping driver for Doctrine2.

454,056 43
laravel/database

Get Laravel database for your non laravel projects. Built on top of illuminate/d...

36,155 90
laravel-doctrine/migrations

Doctrine Migrations for Laravel

2,934,328 78