Support the ongoing development of →
Database Architecture
Last updated 2 years ago.

The metable_type field is used with polymorphic relations, where the Eloquent class name is stored along with the key.

Check out for more.

This enables the link back from the meta table to the linked object, which could be different objects, say Post or Comment, or Category.

Last updated 2 years ago.

Thanks @allmyitjason, that seems a great help. I would like to ask whether the above approach should be used in my case - where I would have artists as user and artists can have bio, many audios, videos, images and other fields.

Last updated 2 years ago.

Sign in to participate in this thread!


Your banner here too?

efst efst Joined 2 Apr 2014


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

Your logo here?

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

© 2024 - All rights reserved.