Laravel - Notifications - Customizing The From Number
If you would like to send some notifications from a phone number that is different from the phone number specified in your config/services.php
file, you may call the from
method on a NexmoMessage
instance:
/**
* Get the Vonage / SMS representation of the notification.
*
* @param mixed $notifiable
* @return NexmoMessage
*/
public function toNexmo($notifiable)
{
return (new NexmoMessage)
->content('Your SMS message content')
->from('15554443333');
}