staudenmeir/laravel-adjacency-list
Recursive Laravel Eloquent relationships with CTEs observed · 2026-08-28
Health v2 · maintenance only
82/100
- Activity 77
- Release rhythm 79
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 27
- age_days: 2689
- days_rel: 142
- days_push: 142
- n_releases_24m: 12
Adoption not part of the score
1577 stars · 113 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Laravel Eloquent extension that adds recursive relationships for traversing tree and graph data structures using common table expressions (CTEs). It supports one-to-many hierarchies like nested comments and many-to-many graphs, with features like depth, path, cycle detection, and nested results.
Use cases
- query hierarchical categories with parent-child relationships in Laravel
- traverse nested comments or page hierarchies with Eloquent
- load entire ancestor or descendant trees of a node recursively
- model many-to-many graph relationships with multiple parents
- detect cycles in recursive data structures
- get node depth and path in a hierarchy via CTEs
When to choose
- you use Laravel Eloquent and need recursive tree or graph queries
- your database supports CTEs (MySQL 8+, PostgreSQL, SQLite, SQL Server)
- you need hierarchical data features like depth, path, or cycle detection out of the box
When to avoid
- you are not using Laravel or Eloquent ORM
- your database does not support recursive CTEs
- you only need simple one-level parent-child relations without recursion
Facets
library · maturity stable
orm database database-driver databases web-development backend developer-tools php eloquent recursive-queries cte tree-structures graph-traversal hierarchical-data laravel-package laravel
1 source
- readme: https://github.com/staudenmeir/laravel-adjacency-list · fetched 2026-08-28 · cb2d545441c7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| staudenmeir/laravel-adjacency-list | main | 82 |
For agents
markdown · JSON · MCP: product_card(name="staudenmeir/laravel-adjacency-list")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem