PHP code example of csgt / notification-channel-goip

1. Go to this page and download the library: Download csgt/notification-channel-goip 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/ */

    

csgt / notification-channel-goip example snippets


// config/app.php
'providers' => [
    ...
    NotificationChannels\GoIP\GoIPProvider::class,
],

// config/services.php
...
'goip' => [
        'account_url' => env('GOIP_URL'),
    ],
...

public function routeNotificationForDirekto()
{
    return $this->mobile;
}
 php
use Illuminate\Notifications\Notification;
use NotificationChannels\GoIP\GoIPChannel;
use NotificationChannels\GoIP\GoIPMessage;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return [GoIPChannel::class];
    }

    public function toDirekto($notifiable)
    {
        return (new DirektoMessage())
            ->content("Your {$notifiable->service} account was approved!");
    }
}