Download the PHP package umbrellio/laravel-ltree without Composer
On this page you can find all versions of the php package umbrellio/laravel-ltree. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download umbrellio/laravel-ltree
More information about umbrellio/laravel-ltree
Files in umbrellio/laravel-ltree
Download umbrellio/laravel-ltree
More information about umbrellio/laravel-ltree
Files in umbrellio/laravel-ltree
Vendor umbrellio
Package laravel-ltree
Short Description Extension LTree (Postgres) for Laravel
License MIT
Package laravel-ltree
Short Description Extension LTree (Postgres) for Laravel
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-ltree
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:
- when create model:
createPath(LTreeModelInterface $model)
- when update model:
updatePath(LTreeModelInterface $model)
for update path for model and children - 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.
All versions of laravel-ltree with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.3|^8.4
laravel/framework Version ^11.0
doctrine/dbal Version ^3.0
umbrellio/laravel-pg-extensions Version ^7.0
umbrellio/laravel-common-objects Version *
laravel/framework Version ^11.0
doctrine/dbal Version ^3.0
umbrellio/laravel-pg-extensions Version ^7.0
umbrellio/laravel-common-objects Version *
The package umbrellio/laravel-ltree contains the following files
Loading the files please wait ....