i solve this with return Product::join('simples', 'products.id', '=', 'simples.product_id') ->groupBy('simples.product_id') ->havingRaw('SUM(simples.quantity) = 1')->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community