# tighten/parental

Use single table inheritance in your Laravel app

Repository: https://github.com/tighten/parental
Canonical: https://ross.abutalabs.com/products/parental
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-05-25T00:37:24+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 84, release rhythm 61, longevity 100
- inputs: {"age_days": 3319, "days_push": 101, "days_rel": 183, "gap_med": 50.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1539, forks 105 (observed 2026-08-28T04:05:00.374720+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: orm
- domain: web-development, backend, databases
- platform: php
- tags: laravel, eloquent, single-table-inheritance, sti, polymorphism

## Member repositories
- tighten/parental (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:00.374720+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:30:55.416280+00:00, confidence not recorded.
  - readme: https://github.com/tighten/parental (fetched 2026-08-28T04:05:00.374720+00:00, sha e23cec009b06)
- Data as of 2026-08-30T08:39:29.467469+00:00.
