Use notification argument in routing examples
This commit is contained in:
parent
307ac87bdb
commit
8761a6eef8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue