All Projects β†’ umbrellio β†’ laravel-ltree

umbrellio / laravel-ltree

Licence: MIT License
LTree Extension (PostgreSQL) for Laravel

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to laravel-ltree

Blog
Everything about database,business.(Most for PostgreSQL).
Stars: ✭ 6,330 (+33215.79%)
Mutual labels:  postgres, pgsql
Yiigo
πŸ”₯ Go θ½»ι‡ηΊ§εΌ€ε‘ι€šη”¨εΊ“ πŸš€πŸš€πŸš€
Stars: ✭ 304 (+1500%)
Mutual labels:  postgres, pgsql
Span Tree
🌳 Tree for GitLab
Stars: ✭ 123 (+547.37%)
Mutual labels:  tree, extension
phpPgAdmin6
PHP7+ Based administration tool for PostgreSQL 9.3+
Stars: ✭ 45 (+136.84%)
Mutual labels:  postgres, pgsql
Vscode Postgres
PostgreSQL extension for vscode providing explorer, highlighting, diagnostics, and intellisense
Stars: ✭ 117 (+515.79%)
Mutual labels:  postgres, pgsql
Pgfe
The PostgreSQL client API in modern C++
Stars: ✭ 98 (+415.79%)
Mutual labels:  postgres, pgsql
pgsentinel
postgresql extension providing Active session history
Stars: ✭ 110 (+478.95%)
Mutual labels:  postgres, extension
Postgraphile
GraphQL is a new way of communicating with your server. It eliminates the problems of over- and under-fetching, incorporates strong data types, has built-in introspection, documentation and deprecation capabilities, and is implemented in many programming languages. This all leads to gloriously low-latency user experiences, better developer experiences, and much increased productivity. Because of all this, GraphQL is typically used as a replacement for (or companion to) RESTful API services.
Stars: ✭ 10,967 (+57621.05%)
Mutual labels:  postgres, pgsql
Ozo
OZO is a C++17 Boost.Asio based header-only library for asyncronous communication with PostgreSQL DBMS.
Stars: ✭ 138 (+626.32%)
Mutual labels:  postgres, pgsql
pgsql-ast-parser
Yet another simple Postgres SQL parser
Stars: ✭ 152 (+700%)
Mutual labels:  postgres, pgsql
emulator
Run Android emulator and iOS simulator easily from VScode!
Stars: ✭ 60 (+215.79%)
Mutual labels:  extension
pgdoctor
Simple, lightweight web service to perform health checks on PostgreSQL instances
Stars: ✭ 64 (+236.84%)
Mutual labels:  postgres
carbon footprint
An open-source about a Carbon Footprint Calculator made with Reactjs. The objective is to have a nice simple web about the environment and how to preserve our planet.
Stars: ✭ 14 (-26.32%)
Mutual labels:  tree
root-file-viewer
View ROOT files directly in VS Code!
Stars: ✭ 20 (+5.26%)
Mutual labels:  extension
TreeMDown
[triː <'em> daʊn] PHP single page markdown tree browser
Stars: ✭ 14 (-26.32%)
Mutual labels:  tree
VS.DiffAllFiles
Visual Studio Extension to make comparing files before and after committing them to Git and TFS faster and easier.
Stars: ✭ 26 (+36.84%)
Mutual labels:  extension
grubreboot-gnome-shell-extension
gnome-shell extension to add a "Reboot" button to the end-session-dialog, that runs grub-reboot before restart
Stars: ✭ 18 (-5.26%)
Mutual labels:  extension
want-my-rss
RSS features for Firefox
Stars: ✭ 68 (+257.89%)
Mutual labels:  extension
ph-commons
Java 1.8+ Library with tons of utility classes required in all projects
Stars: ✭ 23 (+21.05%)
Mutual labels:  tree
linear-tree
A python library to build Model Trees with Linear Models at the leaves.
Stars: ✭ 128 (+573.68%)
Mutual labels:  tree

laravel-ltree

Github Status Coverage Status Latest Stable Version Total Downloads Code Intelligence Status Build Status Code Coverage Scrutinizer Code Quality

LTree Extension (PostgreSQL) for Laravel.

Installation

Run this command to install:

php composer.phar require umbrellio/laravel-ltree

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.

Supported by Umbrellio
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].