mercredi 4 novembre 2015

Laravel 5.1 manyToMany with two classes and third in common

My English is not good enough to summarize this in on sentence so here is the example:

Two classes: chairs and tables. Both of those classes are connected with third class colours with ManyToMany relations.

Let's say I have element of chairs class with two colours: red and blue.

How do I get matching tables, the tables that also belong to red and blue?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire