Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $produtos = DB::table('products')
  2. ->join('cores_produto','cores_produto.produto_id','products.id')
  3. ->join('grupos_produto','grupos_produto.produto_id','products.id')
  4. ->whereIn('cores_produto.cor_id', $c )
  5. ->whereIn('grupos_produto.grupo_id', $g)
  6. ->groupBy('products.id')->orderBy('products.id')
  7. ->select('*')
  8. ->toSql();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement