Laravel sorgularında groupBy() dan sonra having raw ile filtreleme yapabilirsiniz: Product::groupBy('category_id')->havingRaw('COUNT(*) > 1')->get();