belongsTo(User::class); } public function comments(): MorphMany { return $this->morphMany(Comment::class, 'commentable'); } public function attachments(): MorphMany { return $this->morphMany(Attachment::class, 'attachable'); } }