PHP code example of bhavinjr / laravel-alots

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

    

bhavinjr / laravel-alots example snippets


'providers' => [
    // ...
    Bhavinjr\Alots\Providers\AlotsServiceProvider::class,
];

'aliases' => [
    //...
    "Alots": "Bhavinjr\Alots\Facades\Alots",
];

Alots::simpleSms('9876543210', 'test sms');

Alots::unicodeSms('9876543210', 'test sms');

Alots::scheduleSms('9876543210', 'test sms', '01012020-1010AM');

Alots::groupSms('123', 'test sms');

Alots::getDeliveryReport('123');

Alots::checkCredit();
shell
php artisan config:cache
shell
php artisan vendor:publish --provider="Bhavinjr\Alots\Providers\AlotsServiceProvider"
shell
php artisan migrate

return [
    'table_names' => [
        'messages'    => 'alots_messages',
    ],
];
shell
php artisan config:cache