PHP code example of laravel-notification-channels / jusibe
1. Go to this page and download the library: Download laravel-notification-channels/jusibe 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/ */
laravel-notification-channels / jusibe example snippets
public function routeNotificationForJusibe()
{
return $this->phone; // where `phone` is a field in your users table;
}
php
use NotificationChannels\Jusibe\JusibeChannel;
use NotificationChannels\Jusibe\JusibeMessage;
use Illuminate\Notifications\Notification;
class ValentineDateApproved extends Notification
{
public function via($notifiable)
{
return [JusibeChannel::class];
}
public function toJusibe($notifiable)
{
return (new JusibeMessage())
->content("Your {$notifiable->service} account was approved!");
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.