PHP code example of verifiedit / laravel-notification-channel-clicksend
1. Go to this page and download the library: Download verifiedit/laravel-notification-channel-clicksend 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/ */
verifiedit / laravel-notification-channel-clicksend example snippets
php
use NotificationChannels\ClickSend\ClickSendChannel;
use NotificationChannels\ClickSend\ClickSendMessage;
use Illuminate\Notifications\Notification;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [ClickSendChannel::class];
}
public function toClickSend($notifiable)
{
return (new ClickSendMessage())
->setContent("Your {$notifiable->service} account was approved!");
}
}
php
public function routeNotificationForClickSend()
{
return $this->phone_number;
}