belongsTo(Profile::class, 'profile_id', 'id'); } public function status() { return $this->belongsTo(Status::class, 'status_id', 'id'); } public function toText() { $actorName = $this->status->profile->username; return "{$actorName} ".__('notification.mentionedYou'); } public function toHtml() { $actorName = $this->status->profile->username; $actorUrl = $this->status->profile->url(); return "{$actorName} ". __('notification.mentionedYou'); } }