1. Go to this page and download the library: Download laravel-lib/onewaysms 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\Onewaysms\OnewaysmsMessage;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return ["onewaysms"];
}
public function toOnewaysms($notifiable)
{
return (new OnewaysmsMessage)->content("Your account has been successfully approved !");
}
}
public function routeNotificationForOnewaysms()
{
return $this->phone;
}