use Illuminate\Notifications\Notification;
use NotificationChannels\TurboSms\TurboSmsMessage;
use NotificationChannels\TurboSms\TurboSmsChannel;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [TurboSmsChannel::class];
}
public function toTurboSms($notifiable)
{
return TurboSmsMessage::create("Task #{$notifiable->id} is complete!");
}
}
public function routeNotificationForTurboSms()
{
return $this->phone;
}