PHP code example of zgabievi / laravel-smsoffice

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

    

zgabievi / laravel-smsoffice example snippets


// config/app.php
'providers' => [
    ...
    Gabievi\LaravelSMSOffice\SMSOfficeServiceProvider::class,
],

// config/services.php
...
'smsoffice' => [
    'key'  => env('SMSOFFICE_KEY'),
    'sender' => 'JOHN'
],
...

//
public function routeNotificationForSmsoffice()
{
    return $this->phone;
}
bash
php artisan vendor:publish --provider="Gabievi\LaravelSMSOffice\SMSOfficeServiceProvider"