$top_orders = OrderItem::select('name','productId', DB::raw('count(name) as total')) ->groupBy('name','productId') ->orderBy('total','desc') ->take(5) ->get();