Suppose that I have following tables:
1. sizes table:
+ id
+ name
+ ...
2. materials table:
+ id
+ name
+ ...
3. prices table:
+ size_id
+ material_id
+ price
+ ...
4. products table:
+ id
+ name
+ ...
5. product_size table:
+ product_id
+ size_id
6. product_material table:
+ product_id
+ material_id
My question is How to get list of Prices from Product Model through hasManyThrow relationship ?
Thank you
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Fnxx52
via IFTTT
Aucun commentaire:
Enregistrer un commentaire