Limite de l'ensemble de chargement impatiente à la relation

$result = Category::with(['products'])->get()->map(function ($query) {
        $query->setRelation('posts', $query->products->take(2));
         return $query;
    });
Elegant Eel