<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
coreproc / laravel-notification-channel-telerivet example snippets
use CoreProc\NotificationChannels\Telerivet\TelerivetChannel;
use CoreProc\NotificationChannels\Telerivet\TelerivetMessage;
use Illuminate\Notifications\Notification;
class AccountActivated extends Notification
{
public function via($notifiable)
{
return [TelerivetChannel::class];
}
public function toTelerivet($notifiable)
{
return (new TelerivetMessage())
->setContent('Hello this is a test message');
}
}
class User extends Authenticatable
{
use Notifiable;
....
/**
* Specifies the user's mobile number for use in Telerivet
*
* @return string
*/
public function routeNotificationForTelerivet()
{
return $this->mobile_number;
}
}