belongsTo(Disease::class); } public function user() { return $this->belongsTo(User::class); } public function replies() { return $this->hasMany(Comment::class, 'parent_id'); } public function parent() { return $this->belongsTo(Comment::class, 'parent_id'); } public function getContentWithPlaceholderAttribute() { return $this->status === 'deleted' ? 'Deleted Comment' : $this->content; } }