hypothetical/config/broadcasting.php

68 lines
1.8 KiB
PHP
Raw Permalink Normal View History

<?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.
|
2021-04-20 17:11:13 -04:00
| Supported: "pusher", "ably", "redis", "log", "null"
2016-08-19 16:38:49 -04:00
|
*/
2016-08-19 16:38:49 -04:00
'default' => env('BROADCAST_DRIVER', 'null'),
/*
|--------------------------------------------------------------------------
| 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',
2017-01-26 19:17:37 -05:00
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
2016-08-19 16:38:49 -04:00
'options' => [
2018-03-05 18:45:02 -05:00
'cluster' => env('PUSHER_APP_CLUSTER'),
2019-09-06 01:32:11 -04:00
'useTLS' => true,
2016-08-19 16:38:49 -04:00
],
2022-05-23 21:01:33 -04:00
'client_options' => [
// Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
],
],
'ably' => [
'driver' => 'ably',
'key' => env('ABLY_KEY'),
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
],
'log' => [
'driver' => 'log',
],
2016-08-19 16:38:49 -04:00
'null' => [
'driver' => 'null',
],
],
];