Support the ongoing development of Laravel.io →
Views Database Eloquent
Last updated 1 year ago.
0

Hi Rashid,

I cannot see how those tables are supposed to achieve the set goal. Firstly you should name things properly. You should have attributes, each having several possible attribute values. It is unclear whether you want a product to have many attributes and then in the order (or something) to have attribute values specified for them; or a product to have a direct relation with attribute values. Rethink your database schema. This looks like you are moving towards an EAV database, which is quite difficult to work with.

Fitzberg

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Rashid Ali realrashid Joined 27 Nov 2017

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.

© 2024 Laravel.io - All rights reserved.