findById($user->id); if (!$account->phone) return null; $params = [ $params['course']['title'], $params['chapter']['title'], $params['live']['start_time'], ]; $templateId = $this->getTemplateId($this->templateCode); return $this->send($account->phone, $templateId, $params); } }