{"repo":"umbrellio/laravel-ltree","free":true,"listed":false,"github":"https://github.com/umbrellio/laravel-ltree","clone":"git clone https://github.com/umbrellio/laravel-ltree.git","description":"LTree Extension (PostgreSQL) for Laravel","language":"PHP","stars":35,"topics":["postgresql","laravel","ltree","extension","tree","pgsql","postgres","php","laravel-ltree","ltree-extension"],"license":"MIT","category":"databases-storage","readme_excerpt":"laravel-ltree LTree Extension (PostgreSQL) for Laravel. Installation Run this command to install: How to use Implement your Eloquent\\Model from LTreeModelInterface and use LTreeModelTrait . Use LTreeService for build path: 1. when create model: createPath(LTreeModelInterface $model) 2. when update model: updatePath(LTreeModelInterface $model) for update path for model and children 3. when delete model: dropDescendants(LTreeModelInterface $model) for delete children models The get() method returns LTreeCollection , instead of the usual Eloquent\\Collection . LTreeCollection has a toTree() method that converts a flat collection to a tree. LTreeResourceCollection & LTreeResource , which take LTreeCollection as an argument, will also be useful. Authors Created by Korben Dallas.","default_branch":null,"files":null,"tree":[],"storefront":"/r/umbrellio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/umbrellio/laravel-ltree/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}