1. Go to this page and download the library: Download shiroamada/gosms 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\GoSms\GoSmsMessage;
use NotificationChannels\GoSms\GoSmsChannel;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [GoSmsChannel::class];
}
public function toGoSms($notifiable)
{
return GoSmsMessage::create("Task #{$notifiable->id} is complete!");
}
}
public function routeNotificationForGoSms()
{
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.