1. Go to this page and download the library: Download taiwan-sms/every8d 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 TaiwanSms\Every8d\Every8dMessage;
use TaiwanSms\Every8d\Every8dChannel;
use Illuminate\Notifications\Notification;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [Every8dChannel::class];
}
public function toEvery8d($notifiable)
{
return Every8dMessage::create("Task #{$notifiable->id} is complete!");
}
}
public function routeNotificationForEvery8d()
{
return $this->phone;
}