Skip to content

Commit

Permalink
Nexmo: pull in sms dependancy
Browse files Browse the repository at this point in the history
  • Loading branch information
dpslwk committed May 25, 2019
1 parent f72c759 commit 0f701a2
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 33 deletions.
12 changes: 12 additions & 0 deletions app/HMS/Entities/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,4 +444,16 @@ public function setGoogle2faSecret($google2faSecret)

return $this;
}

/**
* Route notifications for the Nexmo channel.
*
* @param \Illuminate\Notifications\Notification $notification
*
* @return string
*/
public function routeNotificationForNexmo($notification)
{
return $this->profile->getContactNumber();
}
}
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"laravel-doctrine/orm": "1.4.*",
"laravel/framework": "5.8.*",
"laravel/horizon": "^3.1",
"laravel/nexmo-notification-channel": "^2.0",
"laravel/passport": "^7.0",
"laravel/slack-notification-channel": "^2.0",
"laravel/tinker": "^1.0",
Expand Down
Loading

0 comments on commit 0f701a2

Please sign in to comment.