Files

69 lines
2.1 KiB
PHP
Raw Permalink Normal View History

2015-12-06 13:58:49 -05:00
<?php
2026-10-05 18:10:18 -04:00
declare(strict_types=1);
2015-12-06 13:58:49 -05:00
return [
/*
|--------------------------------------------------------------------------
| Default Broadcaster
|--------------------------------------------------------------------------
|
| This option controls the default broadcaster that will be used by the
| framework when an event needs to be broadcast. You may set this to
| any of the connections defined in the "connections" array below.
|
2022-10-14 10:59:20 -06:00
| Supported: "pusher", "ably", "redis", "log", "null"
2017-04-01 17:59:43 -04:00
|
2015-12-06 13:58:49 -05:00
*/
2022-10-14 10:59:20 -06:00
2017-04-01 17:59:43 -04:00
'default' => env('BROADCAST_DRIVER', 'null'),
2015-12-06 13:58:49 -05:00
/*
|--------------------------------------------------------------------------
| Broadcast Connections
|--------------------------------------------------------------------------
|
| Here you may define all of the broadcast connections that will be used
| to broadcast events to other systems or over websockets. Samples of
| each available type of connection are provided inside this array.
|
*/
'connections' => [
'pusher' => [
'driver' => 'pusher',
2022-10-14 10:59:20 -06:00
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
2015-12-06 13:58:49 -05:00
'app_id' => env('PUSHER_APP_ID'),
2022-10-14 10:59:20 -06:00
'options' => [
2026-10-05 18:10:18 -04:00
'host' => env('PUSHER_HOST', 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com',
2026-10-11 19:15:22 -04:00
'port' => (int) env('PUSHER_PORT', 443),
2022-10-14 10:59:20 -06:00
'scheme' => env('PUSHER_SCHEME', 'https'),
'encrypted' => true,
'useTLS' => env('PUSHER_SCHEME', 'https') === 'https',
],
'client_options' => [
// Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
],
],
'ably' => [
'driver' => 'ably',
'key' => env('ABLY_KEY'),
2015-12-06 13:58:49 -05:00
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
],
'log' => [
'driver' => 'log',
],
2017-04-01 17:59:43 -04:00
'null' => [
'driver' => 'null',
],
2015-12-06 13:58:49 -05:00
],
];