Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0f701a2

Browse files
committedMay 25, 2019
Nexmo: pull in sms dependancy
1 parent f72c759 commit 0f701a2

File tree

4 files changed

+320
-33
lines changed

4 files changed

+320
-33
lines changed
 

‎app/HMS/Entities/User.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,4 +444,16 @@ public function setGoogle2faSecret($google2faSecret)
444444

445445
return $this;
446446
}
447+
448+
/**
449+
* Route notifications for the Nexmo channel.
450+
*
451+
* @param \Illuminate\Notifications\Notification $notification
452+
*
453+
* @return string
454+
*/
455+
public function routeNotificationForNexmo($notification)
456+
{
457+
return $this->profile->getContactNumber();
458+
}
447459
}

‎composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"laravel-doctrine/orm": "1.4.*",
2121
"laravel/framework": "5.8.*",
2222
"laravel/horizon": "^3.1",
23+
"laravel/nexmo-notification-channel": "^2.0",
2324
"laravel/passport": "^7.0",
2425
"laravel/slack-notification-channel": "^2.0",
2526
"laravel/tinker": "^1.0",

0 commit comments

Comments
 (0)