<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
laravel-notification-channels / vodafone example snippets
use NotificationChannels\Vodafone\VodafoneClient;
$vc = new VodafoneClient();
$vc->receive();
// A static method is also available
VodafoneClient::getUnread();
use NotificationChannels\Vodafone\VodafoneClient;
$ex = false;
do {
try {
$message = VodafoneClient::getUnread();
// Process Message
} catch (\Exception $ex) {}
} while (!$ex);
php
use Illuminate\Notifications\Notification;
use NotificationChannels\Vodafone\VodafoneChannel;
use NotificationChannels\Vodafone\VodafoneMessage;
class Invitation extends Notification
{
public function via($notifiable)
{
return [VodafoneChannel::class];
}
public function toVodafone($notifiable)
{
return (new VodafoneMessage)
->content($this->content)
->from('My App');
}
php
public function routeNotificationForVodafone()
{
return $this->phone;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.