lundi 3 avril 2017

Laravel searching on hasmany relationship

I've code like this

Product Table
--id

Attributes
--id
--product_id
--type

AttributeMap
-id
--attribute_id
--product_id

Each product can have multiple attributes - like have 20 different sizes ,etc.

Now I want to search it using multiple parameters. For example size=23, color=56, etc.

How is it possible using nested queries?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2nDUoMq
via IFTTT

Aucun commentaire:

Enregistrer un commentaire