nerio/mongo-nestedset

Mongo nested set, based on kalnoy/nestedset

1.0.2 2018-11-27 03:42 UTC

This package is auto-updated.

Last update: 2019-12-27 06:04:40 UTC


README

Latest Stable Version Latest Unstable Version

A mongo nested set library for laravel based on kalnoy/nestedset. Depends on jenssegers/mongodb. QueryBuilder code base on beyondlex/mongotree.

Installation

composer require nerio/mongo-nestedset

<?php

use Jenssegers\Mongodb\Eloquent\Model;
use Nerio\MongoNestedset\MongoNodeTrait;

class Node extends Model {
    use MongoNodeTrait;
}

Usage

For usage please refer to original library https://github.com/lazychaser/laravel-nestedset