PHP code example of anheric / laravel-routee-channel
1. Go to this page and download the library: Download anheric/laravel-routee-channel 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/ */
use Illuminate\Notifications\Notification;
use NotificationChannels\Routee\RouteeMessage;
use NotificationChannels\Routee\RouteeChannel;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [RouteeChannel::class];
}
public function toRoutee($notifiable)
{
return (new RouteeMessage)
->content("Your message here");
}
}
public function routeNotificationForRoutee()
{
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.