src/TwilioChannel.php
protected function getTo($notifiable)
    {
        if ($notifiable->routeNotificationFor('twilio')) {
            return $notifiable->routeNotificationFor('twilio');
        }
        if (isset($notifiable->phone_number)) {
            return $notifiable->phone_number;
        }

        throw CouldNotSendNotification::invalidReceiver();
    }
protected function getTo($notifiable)
    {
        if ($notifiable->routeNotificationFor('twilio')) {
            return $notifiable->routeNotificationFor('twilio');
        }
        if (isset($notifiable->phone_number)) {
            return $notifiable->phone_number;
        }

        throw CouldNotSendNotification::invalidReceiver();
    }
protected function getTo ( $ notifiable ) { if ( $ notifiable -> routeNotificationFor ( 'twilio' ) ) { return $ notifiable -> routeNotificationFor ( 'twilio' ) ; } if ( isset ( $ notifiable -> phone_number ) ) { return $ notifiable -> phone_number ; } throw CouldNotSendNotification :: invalidReceiver ( ) ; }
Get the address to send a notification to.

@param mixed $notifiable
@return mixed
@throws CouldNotSendNotification
Get the address to send a notification to .