Skip to content

Laravel package for working with nested trees in MongoDB

Notifications You must be signed in to change notification settings

beyondlex/mongotree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a Laravel package for working with nested trees in MongoDB (https://github.com/jenssegers/laravel-mongodb).

Based on kalnoy/nestedset

Contents:

Installation

To install the package, in terminal:

composer require beyondlex/mongotree

The model

Your model should use Lex\Mongotree\TreeTrait trait to enable nested sets:

use Lex\Mongotree\TreeTrait;

class Foo extends Model {
    use TreeTrait;
}

Usage

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

About

Laravel package for working with nested trees in MongoDB

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages