Parental v1.5.0 introduces three major features for Single Table Inheritance in Laravel. The become() method enables type transitions between model classes while triggering appropriate events. Integer type columns are now supported as an alternative to strings for database optimization. New eager-loading helpers (loadChildren(), childrenWith()) simplify loading relationships across inheritance hierarchies, automatically grouping models by type and executing efficient queries for each group.

7m read timeFrom tighten.com
Post cover image
Table of contents
What is Single Table Inheritance?Becoming Other TypesInteger Type ColumnsEager-Loading HelpersConclusion

Sort: