staudenmeir/eloquent-has-many-deep
Some data may be outdated — see provenance labels.
Laravel Eloquent HasManyThrough relationships with unlimited levels observed · 2026-09-29
Health v2 · maintenance only
68/100
- Activity 64
- Release rhythm 55
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 40
- age_days: 3048
- days_rel: 220
- days_push: 220
- n_releases_24m: 10
Adoption not part of the score
2873 stars · 158 forks observed · 2026-09-29
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Laravel Eloquent package extending HasManyThrough relationships to support unlimited levels of intermediate models. It supports many-to-many, polymorphic relationships, and their combinations, with compatibility across Laravel 5.5+.
Use cases
- query relationships across unlimited intermediate tables in Laravel Eloquent
- define deep has-many-through relationships spanning multiple models
- combine many-to-many and polymorphic relationships in a single chain
- traverse nested relationships like country -> users -> posts -> comments
- get deep has-one relationships through multiple intermediate models
- apply constraints on intermediate and pivot tables in deep relationships
When to choose
- you need Eloquent relationships deeper than the single intermediate model HasManyThrough allows
- you want to chain existing relationships or define multi-level relations manually with custom keys
- you need support for polymorphic and many-to-many combinations in deep relation chains
When to avoid
- your relationships are only one level deep and native Laravel HasManyThrough suffices
- you are not using Laravel or Eloquent ORM
- you prefer writing raw SQL joins or query builder queries for complex multi-table joins
Facets
library · maturity active
orm database web-development backend databases php eloquent laravel-package has-many-through relationships composer-package laravel
1 source
- readme: https://github.com/staudenmeir/eloquent-has-many-deep · fetched 2026-09-29 · 39bb7fac4d48
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| staudenmeir/eloquent-has-many-deep | main | 68 |
For agents
markdown · JSON · MCP: product_card(name="staudenmeir/eloquent-has-many-deep")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem