PHP code example of bellal / laravel-pubnub

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

    

bellal / laravel-pubnub example snippets


Bellal\Services\Pubnub\ServiceProvider::class

'Pubnub' => Bellal\Services\Pubnub\Support\Facades\Pubnub::class

'pubnub' => [
    'driver' => 'pubnub',
    'publish_key' => env('PUBNUB_PUBLISH_KEY'),
    'subscribe_key' => env('PUBNUB_SUBSCRIBE_KEY')
],
bash
php artisan vendor:publish --provider="Bellal\Services\Pubnub\ServiceProvider"
bash
php artisan vendor:publish --provider="Bellal\Services\Pubnub\ServiceProvider" --force