tighten/parental
Use single table inheritance in your Laravel app observed · 2026-08-28
Health v2 · maintenance only
79/100
- Activity 84
- Release rhythm 61
- 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: 50.5
- age_days: 3319
- days_rel: 183
- days_push: 101
- n_releases_24m: 5
Adoption not part of the score
1539 stars · 105 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Parental is a Laravel package that adds single table inheritance (STI) to Eloquent models. It lets child models extend a parent model while sharing the same database table, with automatic type-column-based model resolution.
Use cases
- use single table inheritance in laravel eloquent models
- extend a model without creating a new database table
- return child model instances when querying a parent model
- store multiple model types in one table with a type column
- avoid laravel guessing wrong table and foreign key names for subclassed models
- map type column values to class names with aliases
When to choose
- you use laravel eloquent and want STI behavior
- several model variants share one table but need distinct behavior
- you want child models returned automatically from parent queries
When to avoid
- you use a framework other than laravel
- you prefer separate tables per model type or entity inheritance
- your models need different schemas per subclass
Facets
library · maturity stable
orm web-development backend databases php laravel eloquent single-table-inheritance sti polymorphism
1 source
- readme: https://github.com/tighten/parental · fetched 2026-08-28 · e23cec009b06
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| tighten/parental | main | 79 |
For agents
markdown · JSON · MCP: product_card(name="tighten/parental")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem