findyouractivity/single-table-inheritance
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.
Single Table Inheritance for Laravel Eloquent models, letting multiple model classes share one database table while behaving as distinct types. Store a type discriminator column and let the package automatically scope queries and hydrate the correct subclass, so Post, Video, and Article can live in a single contents table without duplicating schema.
How can I help you explore Laravel packages today?