Support the ongoing development of Laravel.io →
Database Eloquent Architecture

Hello,

I've been strugling to solve the Eloquent Inheritence problem but haven't found a solution yet.

Doctrine implements the Class Table Inheritance pattern where each model has it's own table. The inherited classes define in their tables only some additional keys, while they retrieve common attributes from the parant model's table.

It seems a lot more efficient than the Polymorphic Relations that are implemented by Eloquent.

How do you solve this problem?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

igaster igaster Joined 13 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.