Ancestry implements the closure table pattern for managing hierarchical relationships in Laravel. This enables efficient queries for ancestors and descendants without recursion limits, supporting deeply nested relationships like organizational charts, sales hierarchies, and category trees.
Find a file
Brian Faust f87b9ad3d2
first commit
Signed-off-by: Brian Faust <brian@cline.sh>
2025-12-26 16:37:31 +02:00
.github first commit 2025-12-26 16:37:31 +02:00
config first commit 2025-12-26 16:37:31 +02:00
cookbook first commit 2025-12-26 16:37:31 +02:00
database/migrations first commit 2025-12-26 16:37:31 +02:00
docker/php first commit 2025-12-26 16:37:31 +02:00
src first commit 2025-12-26 16:37:31 +02:00
tests first commit 2025-12-26 16:37:31 +02:00
.editorconfig first commit 2025-12-26 16:37:31 +02:00
.gitattributes first commit 2025-12-26 16:37:31 +02:00
.gitignore first commit 2025-12-26 16:37:31 +02:00
CHANGELOG.md first commit 2025-12-26 16:37:31 +02:00
CODE_OF_CONDUCT.md first commit 2025-12-26 16:37:31 +02:00
composer.json first commit 2025-12-26 16:37:31 +02:00
CONTRIBUTING.md first commit 2025-12-26 16:37:31 +02:00
docker-compose.yml first commit 2025-12-26 16:37:31 +02:00
ecs.php first commit 2025-12-26 16:37:31 +02:00
LICENSE.md first commit 2025-12-26 16:37:31 +02:00
Makefile first commit 2025-12-26 16:37:31 +02:00
phpstan.neon.dist first commit 2025-12-26 16:37:31 +02:00
phpunit.morphs.xml first commit 2025-12-26 16:37:31 +02:00
phpunit.numeric.xml first commit 2025-12-26 16:37:31 +02:00
phpunit.ulid.xml first commit 2025-12-26 16:37:31 +02:00
phpunit.uuid.xml first commit 2025-12-26 16:37:31 +02:00
phpunit.xml.dist first commit 2025-12-26 16:37:31 +02:00
README.md first commit 2025-12-26 16:37:31 +02:00
rector.php first commit 2025-12-26 16:37:31 +02:00
SECURITY.md first commit 2025-12-26 16:37:31 +02:00
testbench.yaml first commit 2025-12-26 16:37:31 +02:00

GitHub Workflow Status Latest Version on Packagist Software License Total Downloads


Ancestry

Closure table hierarchies for Eloquent models with O(1) ancestor/descendant queries.

Ancestry implements the closure table pattern for managing hierarchical relationships in Laravel. This enables efficient queries for ancestors and descendants without recursion limits, supporting deeply nested relationships like organizational charts, sales hierarchies, and category trees.

Documentation

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.

Credits

License

The MIT License. Please see License File for more information.