2017 © Pedro Peláez
 

library tree-data

image

goez/tree-data

  • Thursday, March 3, 2016
  • by jaceju
  • Repository
  • 2 Watchers
  • 1 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Adjacency List model for Laravel Eloquent

Build Status, (*1)

Goez/TreeData is an adjacency list visitor for Eloquent model., (*2)

Usage

Goez/TreeData is designed for Laravel 4.2+, just follow the steps below:, (*3)

  1. Install from composer., (*4)

    composer require goez/tree-data
    
  2. Add tree method in your eloquant model:, (*5)

    use Goez\TreeData\Tree;
    use Illuminate\Database\Eloquent\Model as Eloquent;
    
    class Menu extends Eloquent
    {
        /**
         * @return \Goez\TreeData\Visitor\Eloquent
         */
        public function tree()
        {
            return Tree::accept($this);
        }
    }
    

Examples

Find examples in tests folder., (*6)

License

MIT, (*7)

The Versions

03/03 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jace Ju

08/01 2015
07/10 2013

0.1.2

0.1.2.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jace Ju

27/09 2013

0.1.1

0.1.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jace Ju