PHP code example of toonday / laravel-bulksmsnigeria-notification

1. Go to this page and download the library: Download toonday/laravel-bulksmsnigeria-notification 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/ */

    

toonday / laravel-bulksmsnigeria-notification example snippets


"providers" => [
    ...
    "Toonday\BulkSMSNigeria\BulkSMSNigeriaServiceProvider",
    ...
]

public function routeNotificationForBulkSMSNigeria($notification)
{
    return $user->phone_number;
}

...
use Toonday\BulkSMSNigeria\BulkSMSNigeriaChannel;
...

public function via($notifiable)
{
    return [BulkSMSNigeriaChannel::class];
}

...
use Toonday\BulkSMSNigeria\BulkSMSMessage;
...

public function toBulkSmsNigeria($notifiable)
{
    return (new BulkSMSMessage)
                ->body('This a test message');
}
bash
php artisan vendor:publish --provider="Toonday\BulkSMSNigeria\BulkSMSNigeriaServiceProvider" --tag=config