Need instance notification for routeNotificationForTwilio
elesei opened this issue · comments
Elesei commented
At the moment, the function receiving the number does not pass to the instance.
Lines 76 to 86 in b662794
In some cases, it is necessary to obtain instance notifications.
return $notifiable->routeNotificationFor('twilio', $notifiable);
protected function getTo($notifiable)
{
if ($notifiable->routeNotificationFor('twilio')) {
return $notifiable->routeNotificationFor('twilio', $notifiable);
}
if (isset($notifiable->phone_number)) {
return $notifiable->phone_number;
}
throw CouldNotSendNotification::invalidReceiver();
}
TheGeek1101 commented
This didn't seem to solve the issue for me