1. Go to this page and download the library: Download devineonline/sms-broadcast library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
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.