public function routeNotificationForTotalVoice()
{
return '+5521999999999';
}
php
use NotificationChannels\TotalVoice\TotalVoiceChannel;
use NotificationChannels\TotalVoice\TotalVoiceSmsMessage;
use Illuminate\Notifications\Notification;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [TotalVoiceChannel::class];
}
public function toTotalVoice($notifiable)
{
return (new TotalVoiceSmsMessage())
->content("Your {$notifiable->service} account was approved!");
}
}
php
use NotificationChannels\TotalVoice\TotalVoiceChannel;
use NotificationChannels\TotalVoice\TotalVoiceTtsMessage;
use Illuminate\Notifications\Notification;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [TotalVoiceChannel::class];
}
public function toTotalVoice($notifiable)
{
return (new TotalVoiceTtsMessage())
->content("Your {$notifiable->service} account was approved!");
}
}
php
use NotificationChannels\TotalVoice\TotalVoiceChannel;
use NotificationChannels\TotalVoice\TotalVoiceAudioMessage;
use Illuminate\Notifications\Notification;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [TotalVoiceChannel::class];
}
public function toTotalVoice($notifiable)
{
return (new TotalVoiceAudioMessage())
->content("http://foooo.bar/audio.mp3");
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.