staudenmeir/belongs-to-through
Laravel Eloquent BelongsToThrough relationships observed · 2026-08-28
Health v2 · maintenance only
72/100
- Activity 69
- Release rhythm 60
- 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: 58
- age_days: 4109
- days_rel: 186
- days_push: 186
- n_releases_24m: 6
Adoption not part of the score
1270 stars · 97 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Laravel Eloquent package that adds BelongsToThrough relationships, the inverse of HasManyThrough, with support for unlimited intermediate models. It is installed via Composer and supports Laravel 5.0 through 13.x.
Use cases
- define belongs-to-through relationships in Laravel Eloquent
- get an ancestor model through intermediate relations in Laravel
- inverse of hasManyThrough in Eloquent
- query a grandparent relation from a deeply nested model
- traverse multiple intermediate models in a Laravel relationship
When to choose
- you need the inverse of HasManyThrough in Laravel Eloquent
- your model belongs to a distant ancestor through several intermediate models
- you need custom foreign/local keys, table aliases, or soft-delete support in through relationships
When to avoid
- you don't use Laravel or Eloquent
- a simple belongsTo or hasManyThrough relationship suffices
Facets
library · maturity active
orm database web-development backend databases php eloquent laravel-package belongs-to-through relationships composer laravel
1 source
- readme: https://github.com/staudenmeir/belongs-to-through · fetched 2026-08-28 · 883947de0bd5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| staudenmeir/belongs-to-through | main | 72 |
For agents
markdown · JSON · MCP: product_card(name="staudenmeir/belongs-to-through")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem