content, 0, 36); $notification = new NotificationModel(); $notification->sender_id = $comment->owner_id; $notification->receiver_id = $question->owner_id; $notification->event_id = $comment->id; $notification->event_type = NotificationModel::TYPE_QUESTION_COMMENTED; $notification->event_info = [ 'question' => ['id' => $question->id, 'title' => $question->title], 'comment' => ['id' => $comment->id, 'content' => $commentContent], ]; $notification->create(); } }