I\'m trying to group by using the child table but it still returns wrong result. Please see my code below.
Query
$products = DB::table(\'p