2018-10-04 19:10:43 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
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-06-21 12:00:17 +02:00
|
|
|
| Supported: "pusher", "ably", "redis", "log", "null"
|
2018-10-04 19:10:43 +02:00
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2023-03-20 21:07:07 +01:00
|
|
|
'default' => env('BROADCAST_DRIVER', 'log'),
|
2018-10-04 19:10:43 +02: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' => [
|
2018-10-15 07:00:48 +02:00
|
|
|
'driver' => 'pusher',
|
2024-09-17 18:37:27 +02:00
|
|
|
'key' => env('PUSHER_APP_KEY', 'app-key'),
|
|
|
|
'secret' => env('PUSHER_APP_SECRET', 'app-secret'),
|
|
|
|
'app_id' => env('PUSHER_APP_ID', 'app-id'),
|
2018-10-04 19:10:43 +02:00
|
|
|
'options' => [
|
2024-09-17 18:37:27 +02:00
|
|
|
'host' => env('PUSHER_HOST', '127.0.0.1'),
|
|
|
|
'port' => env('PUSHER_PORT', 6001),
|
|
|
|
'scheme' => env('PUSHER_SCHEME', 'http'),
|
|
|
|
'encrypted' => true,
|
|
|
|
'useTLS' => env('PUSHER_SCHEME') === 'https',
|
2022-06-21 12:00:17 +02:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'ably' => [
|
|
|
|
'driver' => 'ably',
|
|
|
|
'key' => env('ABLY_KEY'),
|
2018-10-04 19:10:43 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
'redis' => [
|
2018-10-15 07:00:48 +02:00
|
|
|
'driver' => 'redis',
|
2021-03-29 18:12:24 +02:00
|
|
|
'connection' => env('REDIS_BROADCAST_CONNECTION', 'default'),
|
2018-10-04 19:10:43 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
'log' => [
|
|
|
|
'driver' => 'log',
|
|
|
|
],
|
|
|
|
|
|
|
|
'null' => [
|
|
|
|
'driver' => 'null',
|
|
|
|
],
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|