public function addNotification($text) { $text = str_replace(['{member}', '{presentation}'], [Member::currentUser()->getName(), $this->owner->Title], $text); $comment = SummitPresentationComment::create(['Body' => $text, 'CommenterID' => Member::currentUserID(), 'PresentationID' => $this->owner->ID, 'IsActivity' => true]); $comment->write(); }