use Illuminate\Notifications\Notification;
use NotificationChannels\SmsBroadcast\SmsBroadcastMessage;
use NotificationChannels\SmsBroadcast\SmsBroadcastChannel;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [SmsBroadcastChannel::class];
}
public function toSmsbroadcast($notifiable)
{
return (new SmsBroadcastMessage)
->content("Task #{$notifiable->id} is complete!");
}
}
public function routeNotificationForSmsbroadcast()
{
return $this->phone; // 0412345678 or 6142345678
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.