/**
* Get the notification routing information for the Bulk SMS driver.
*
* @param \Illuminate\Notifications\Notification|null $notification Notification instance.
*
* @return mixed
*/
public function routeNotificationForBulkSms($notification = null)
{
return $this->phone_number; // or whatever field name that has the phone number.
}
/**
* Get the BulkSMS representation of the notification.
*
* @param mixed $notifiable Notifiable instance.
*
* @return \Aldemeery\BulkSMS\Messages\BulkSMSMessage
*/
public function toBulkSms($notifiable)
{
return new BulkSMSMessage('Your verification code is 1234');
}
/**
* Get the notification channels.
*
* @param mixed $notifiable
*
* @return array|string
*/
public function via($notifiable)
{
return ['bulkSms'];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.