I have a table, A, which has a many-to-many relationship with two other tables, B and C, via their respective pivot tables.
My model for A has a method which returns a BelongsToMany relation for table B. How can I use that when I'm building a criteria to find specific results?
Ex: I want to get all of the rows of table A that have a specific value of B in the pivot table
I have a table, A, which has a many-to-many relationship with two other tables, B and C, via their respective pivot tables.
My model for A has a method which returns a BelongsToMany relation for table B. How can I use that when I'm building a criteria to find specific results?
Ex: I want to get all of the rows of table A that have a specific value of B in the pivot table