Ross ROSS = Recommend OSS · open-source software intelligence for agents

staudenmeir/eloquent-has-many-deep

Laravel Eloquent HasManyThrough relationships with unlimited levels observed · 2026-08-28

github.com/staudenmeir/eloquent-has-many-deep · PHP · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

74/100

  • Activity 72
  • Release rhythm 62
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 40
  • age_days: 3000
  • days_rel: 172
  • days_push: 172
  • n_releases_24m: 12

Full methodology

Adoption not part of the score

2870 stars · 158 forks observed · 2026-08-28

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

Member repositories

RepositoryRoleHealth v2
staudenmeir/eloquent-has-many-deepmain74

For agents

markdown · JSON · MCP: product_card(name="staudenmeir/eloquent-has-many-deep")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem