Use notification argument in routing examples

This commit is contained in:
Dwight Watson 2018-02-24 15:56:08 +11:00 committed by GitHub
parent 307ac87bdb
commit 8761a6eef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -254,9 +254,10 @@ When sending notifications via the `mail` channel, the notification system will
/**
* Route notifications for the mail channel.
*
* @param \Illuminate\Notifications\Notification $notification
* @return string
*/
public function routeNotificationForMail()
public function routeNotificationForMail($notification)
{
return $this->email_address;
}
@ -622,9 +623,10 @@ When sending notifications via the `nexmo` channel, the notification system will
/**
* Route notifications for the Nexmo channel.
*
* @param \Illuminate\Notifications\Notification $notification
* @return string
*/
public function routeNotificationForNexmo()
public function routeNotificationForNexmo($notification)
{
return $this->phone;
}
@ -798,9 +800,10 @@ To route Slack notifications to the proper location, define a `routeNotification
/**
* Route notifications for the Slack channel.
*
* @param \Illuminate\Notifications\Notification $notification
* @return string
*/
public function routeNotificationForSlack()
public function routeNotificationForSlack($notification)
{
return $this->slack_webhook_url;
}