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