{"id":14973973,"url":"https://github.com/umbrellio/laravel-ltree","last_synced_at":"2025-08-21T06:30:52.702Z","repository":{"id":41253032,"uuid":"196736114","full_name":"umbrellio/laravel-ltree","owner":"umbrellio","description":"LTree Extension (PostgreSQL) for Laravel","archived":false,"fork":false,"pushed_at":"2024-05-16T14:01:26.000Z","size":296,"stargazers_count":32,"open_issues_count":1,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-06T02:12:49.544Z","etag":null,"topics":["extension","laravel","laravel-ltree","ltree","ltree-extension","pgsql","php","postgres","postgresql","tree"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/umbrellio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-13T15:19:50.000Z","updated_at":"2024-11-27T13:29:11.000Z","dependencies_parsed_at":"2023-12-22T08:28:24.163Z","dependency_job_id":"4a8deb8f-046a-441e-b88a-e818d8231db2","html_url":"https://github.com/umbrellio/laravel-ltree","commit_stats":{"total_commits":81,"total_committers":9,"mean_commits":9.0,"dds":0.2222222222222222,"last_synced_commit":"e76fc38e51d516ecee2c23323b8838f165ebaacb"},"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Flaravel-ltree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Flaravel-ltree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Flaravel-ltree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Flaravel-ltree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umbrellio","download_url":"https://codeload.github.com/umbrellio/laravel-ltree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230494921,"owners_count":18235046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["extension","laravel","laravel-ltree","ltree","ltree-extension","pgsql","php","postgres","postgresql","tree"],"created_at":"2024-09-24T13:49:45.924Z","updated_at":"2024-12-19T20:08:14.757Z","avatar_url":"https://github.com/umbrellio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-ltree\n\n[![Github Status](https://github.com/umbrellio/laravel-ltree/workflows/CI/badge.svg)](https://github.com/umbrellio/laravel-ltree/actions)\n[![Coverage Status](https://coveralls.io/repos/github/umbrellio/laravel-ltree/badge.svg?branch=master)](https://coveralls.io/github/umbrellio/laravel-ltree?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/umbrellio/laravel-ltree/v/stable.png)](https://packagist.org/packages/umbrellio/laravel-ltree)\n[![Total Downloads](https://poser.pugx.org/umbrellio/laravel-ltree/downloads.png)](https://packagist.org/packages/umbrellio/laravel-ltree)\n[![Code Intelligence Status](https://scrutinizer-ci.com/g/umbrellio/laravel-ltree/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)\n[![Build Status](https://scrutinizer-ci.com/g/umbrellio/laravel-ltree/badges/build.png?b=master)](https://scrutinizer-ci.com/g/umbrellio/laravel-ltree/build-status/master)\n[![Code Coverage](https://scrutinizer-ci.com/g/umbrellio/laravel-ltree/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/umbrellio/laravel-ltree/?branch=master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/umbrellio/laravel-ltree/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/umbrellio/laravel-ltree/?branch=master)\n\nLTree Extension (PostgreSQL) for Laravel. \n\n## Installation\n\nRun this command to install:\n```bash\nphp composer.phar require umbrellio/laravel-ltree\n```\n\n## How to use\n\nImplement your `Eloquent\\Model` from `LTreeModelInterface` and use `LTreeModelTrait`.\n\nUse LTreeService for build path:\n1. when create model: `createPath(LTreeModelInterface $model)`\n2. when update model: `updatePath(LTreeModelInterface $model)` for update path for model and children\n3. when delete model: `dropDescendants(LTreeModelInterface $model)` for delete children models\n\nThe `get()` method returns `LTreeCollection`, instead of the usual `Eloquent\\Collection`.\n\n`LTreeCollection` has a `toTree()` method that converts a flat collection to a tree.\n\n`LTreeResourceCollection` \u0026 `LTreeResource`, which take `LTreeCollection` as an argument, will also be useful.\n\n## Authors\n\nCreated by Korben Dallas.\n\n\u003ca href=\"https://github.com/umbrellio/\"\u003e\n\u003cimg style=\"float: left;\" src=\"https://umbrellio.github.io/Umbrellio/supported_by_umbrellio.svg\" alt=\"Supported by Umbrellio\" width=\"439\" height=\"72\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbrellio%2Flaravel-ltree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumbrellio%2Flaravel-ltree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbrellio%2Flaravel-ltree/lists"}