1. Go to this page and download the library: Download yna/laravel-b-sms 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 Yna\PortToSms\PortToSmsMessage;
use Yna\PortToSms\PortToSmsChannel;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [BSmsChannel::class];
}
public function toBSms($notifiable)
{
return BSmsMessage::create("Task #{$notifiable->id} is complete!");
}
}
public function routeNotificationForBSms()
{
return $this->phone;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.