związek laravel z limitem

$feed= Feed::whereUserId($userId)->with(['comments'])->get()->map(function ($query) {
            $query->setRelation('comments', $query->comments->take(10));
            return $query;
        });
Aashiq Hasnat