oldtimeguitarguy/eloquent-single-table-inheritance
Single table inheritance for Laravel Eloquent models: store multiple related model types in one database table and have each subclass automatically instantiate with its own behavior, scopes, and attributes.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| findyouractivity/single-table-inheritance | 0.87 | Single-table inheritance for Laravel Eloquent: store multiple model subclasses in one database table and have queries return the correct child class. Configure type columns and mappings to keep a shared schema with distinct PHP models. | 0 | — | 0 | — | 0 | 0.0 | — | MIT | 4 years ago | |
| nanigans/single-table-inheritance | 0.86 | — | 250 | 250 | 48 | 31K | 2 | 4.3 | 30.1 | MIT | 5 years ago | |
| phl/laravel-sti | 0.85 | phl/laravel-sti brings Single Table Inheritance to Laravel Eloquent. Map multiple model subclasses to one database table using a type column, with automatic class resolution, scoped queries, and familiar Eloquent relationships and behavior for cleaner hierarchical models instead of separate tables. | 17 | 17 | 0 | 0 | 1 | 0.2 | — | MIT | 6 years ago | |
| mannikj/laravel-sti | 0.84 | — | 6 | 6 | 1 | 222 | 0 | 9.1 | 20.9 | MIT | 1 year ago | |
| calebporzio/parental | 0.82 | Single-table inheritance for Laravel Eloquent. Store multiple model “types” in one table and let Parental automatically instantiate the right child class. Keeps polymorphic-like behavior simple, with familiar relationships, queries, and mass assignment. | 1,541 | 1,530 | 104 | 26K | 5 | 28.3 | 20.9 | MIT | 8 months ago | |
| fidum/laravel-eloquent-morph-to-one | 0.80 | Adds a MorphToOne relationship to Laravel's Eloquent ORM, letting a model own a single polymorphic related record. Useful when a parent has exactly one morph child, mirroring MorphMany but returning a single model with lazy and eager loading support. | 34 | — | 4 | — | 0 | 14.4 | — | MIT | 3 months ago |
How can I help you explore Laravel packages today?