PHP code example of pedrogaldino / laravel-echo-driver

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

    

pedrogaldino / laravel-echo-driver example snippets


'providers' => [
    ...
    PedroGaldino\EchoBroadcastDriver\BroadcastServiceProvider::class,
    ...
]

'default' => 'echo',

'connections' => [
    ...
    'echo' => [
            'driver' => 'echo',
            'connection' => env('ECHO_HOST','localhost')
        ]
    ...
]