Limite de conjunto de carregamento ansioso para o relacionamento

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