$comments = $post->comments()->with('replyComments:replyComments')->orderBy('created_at', 'desc')->get();
This needs to add to the fetch code.
then
foreach ($comments as $comment) {
echo $comment->replyComments;
};
Or else you can use array.
displayData = [];
foreach ($comments as $comment) {
displayData[] = $comment->replyComments;
};
echo displayData;
* Be the first to Make Comment