So in your comments table you should have post_id.
Then in your Post model add this:
public function comments()
{
return $this->hasMany(Comment:class);
}
Same for the replies table it should belong to a Comment
So if you have Reply model add this to the Comment model
public function replies()
{
return $this->hasMany(Reply::class);
}
Then you can get it like this:
$posts = Post::with('comments.replies')->get();
If your Reply is also a Comment with a parent_id for example, then in your Comment model add this instead:
public function replies()
{
return $this->hasMany(Comment::class, 'parent_id', 'id');
}
Or just share what is your relationship in your database?
Let me know if this works :)