This is a Laravel package for working with nested trees in MongoDB (https://github.com/jenssegers/laravel-mongodb).
Based on kalnoy/nestedset
Contents:
To install the package, in terminal:
composer require beyondlex/mongotree
Your model should use Lex\Mongotree\TreeTrait
trait to enable nested sets:
use Lex\Mongotree\TreeTrait;
class Foo extends Model {
use TreeTrait;
}
For usage please refer to original library https://github.com/lazychaser/laravel-nestedset