Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $produtos = DB::table('products')
- ->join('cores_produto','cores_produto.produto_id','products.id')
- ->join('grupos_produto','grupos_produto.produto_id','products.id')
- ->whereIn('cores_produto.cor_id', $c )
- ->whereIn('grupos_produto.grupo_id', $g)
- ->groupBy('products.id')->orderBy('products.id')
- ->select('*')
- ->toSql();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement