PHP code example of umuttaymaz / laravel-notification-verimor
1. Go to this page and download the library: Download umuttaymaz/laravel-notification-verimor 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/ */
umuttaymaz / laravel-notification-verimor example snippets
// config/app.php
'providers' => [
...
UmutTaymaz\VerimorSMS\VerimorSMSServiceProvider::class,
],
use Illuminate\Notifications\Notification;
use NotificationChannels\SmscRu\SmscRuMessage;
use NotificationChannels\SmscRu\SmscRuChannel;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [VerimorSMSChannel::class];
}
public function toVerimor($notifiable)
{
return VerimorSMSMessage::create('This is notification message');
}
}
public function routeNotificationForVerimor()
{
return $this->phone;
}