use Illuminate\Notifications\Notification;
use NotificationChannels\UltraSms\UltraSmsMessage;
use NotificationChannels\UltraSms\UltraSmsChannel;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [UltraSmsChannel::class];
}
public function toUltraSms($notifiable)
{
return UltraSmsMessage::create("Task #{$notifiable->id} is complete!");
}
}
public function routeNotificationForUltraSms()
{
return $this->mobile; //depend what is your db field
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.