renatoneto / l5-scaledrone-broadcasting-driver by renatoneto

161
3
2
Package Data
Maintainer Username: renatoneto
Maintainer Contact: skapemr@gmail.com (Renato Neto)
Package Create Date: 2016-04-06
Package Last Update: 2016-04-06
Language: PHP
License: Unknown
Last Refreshed: 2024-11-15 15:25:03
Package Statistics
Total Downloads: 161
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 3
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

Laravel Broadcasting ScaleDrone Driver

Laravel Broadcasting ScaleDrone Driver for Laravel 5 and Lumen

Usage

In config/broadcasting.php set the default driver to 'scaledrone' and add configuration options like this:

'default' => 'scaledrone,
'connections' => [
	...
	'scaledrone' => [
        'driver'     => 'scaledrone',
        'channel_id' => env('SCALEDRONE_CHANNEL_ID'),
        'secret_key' => env('SCALEDRONE_SECRET_KEY')
    ],
    ...
]

Laravel

In your config/app.php add the ScaleDrone Service Provider to your providers:

'providers' => [
    ...
    RenatoNeto\LaravelScaleDrone\ScaleDroneBroadcastServiceProvider::class,
    ...
]

Lumen

In your bootstrap/app.php register the ScaleDrone Service Provider:

    ...
    $app->register(RenatoNeto\LaravelScaleDrone\ScaleDroneBroadcastLumenServiceProvider::class);
    ...