PHPackages                             winponta/treevel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. winponta/treevel

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

winponta/treevel
================

Set of classes and traits to handle tree hierarchy in Laravel Eloquent Models

0.3.0(8y ago)35451PHPPHP &gt;=5.4.0

Since Sep 10Pushed 8y ago2 watchersCompare

[ Source](https://github.com/winponta/treevel)[ Packagist](https://packagist.org/packages/winponta/treevel)[ RSS](/packages/winponta-treevel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (12)Used By (0)

treevel
=======

[](#treevel)

Installation
------------

[](#installation)

1. Require this package in your composer.json file and run composer install (or run `composer require winponta/treevel` directly):

    "winponta/treevel": "0.\*"
2. Run copmposer:

    `composer update`

Using
-----

[](#using)

Enable your models to be ready to handle tree hierarchy records, using one of the traits of the package (for now only Parent tree model is available).

### Parent tree model

[](#parent-tree-model)

Parent tree models are handled using `parent id` references.

#### Trait

[](#trait)

```
