| 1 | <?php | = | 1 | <?php |
| 2 | 2 | |||
| 3 | return [ | 3 | return [ | |
| 4 | 4 | |||
| 5 | /* | 5 | /* | |
| 6 | |-------------------------------------------------------------------------- | 6 | |-------------------------------------------------------------------------- | |
| 7 | | Default Broadcaster | 7 | | Default Broadcaster | |
| 8 | |-------------------------------------------------------------------------- | 8 | |-------------------------------------------------------------------------- | |
| 9 | | | 9 | | | |
| 10 | | This option controls the default broadcaster that will be used by the | 10 | | This option controls the default broadcaster that will be used by the | |
| 11 | | framework when an event needs to be broadcast. You may set this to | 11 | | framework when an event needs to be broadcast. You may set this to | |
| 12 | | any of the connections defined in the "connections" array below. | 12 | | any of the connections defined in the "connections" array below. | |
| 13 | | | 13 | | | |
| 14 | | Supported: "pusher", "redis", "log", "null" | <> | 14 | | Supported: "pusher", "ably", "redis", "log", "null" |
| 15 | | | = | 15 | | |
| 16 | */ | 16 | */ | |
| 17 | 17 | |||
| 18 | 'default' => env('BROADCAST_DRIVER', 'null'), | 18 | 'default' => env('BROADCAST_DRIVER', 'null'), | |
| 19 | 19 | |||
| 20 | /* | 20 | /* | |
| 21 | |-------------------------------------------------------------------------- | 21 | |-------------------------------------------------------------------------- | |
| 22 | | Broadcast Connections | 22 | | Broadcast Connections | |
| 23 | |-------------------------------------------------------------------------- | 23 | |-------------------------------------------------------------------------- | |
| 24 | | | 24 | | | |
| 25 | | Here you may define all of the broadcast connections that will be used | 25 | | Here you may define all of the broadcast connections that will be used | |
| 26 | | to broadcast events to other systems or over websockets. Samples of | 26 | | to broadcast events to other systems or over websockets. Samples of | |
| 27 | | each available type of connection are provided inside this array. | 27 | | each available type of connection are provided inside this array. | |
| 28 | | | 28 | | | |
| 29 | */ | 29 | */ | |
| 30 | 30 | |||
| 31 | 'connections' => [ | 31 | 'connections' => [ | |
| 32 | 32 | |||
| 33 | 'pusher' => [ | 33 | 'pusher' => [ | |
| 34 | 'driver' => 'pusher', | 34 | 'driver' => 'pusher', | |
| 35 | 'key' => env('PUSHER_APP_KEY'), | 35 | 'key' => env('PUSHER_APP_KEY'), | |
| 36 | 'secret' => env('PUSHER_APP_SECRET'), | 36 | 'secret' => env('PUSHER_APP_SECRET'), | |
| 37 | 'app_id' => env('PUSHER_APP_ID'), | 37 | 'app_id' => env('PUSHER_APP_ID'), | |
| 38 | 'options' => [ | 38 | 'options' => [ | |
| 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), | 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), | |
| 40 | 'useTLS' => true, | 40 | 'useTLS' => true, | |
| 41 | ], | 41 | ], | |
| 42 | ], | 42 | ], | |
| 43 | 43 | |||
| -+ | 44 | 'ably' => [ | ||
| 45 | 'driver' => 'ably', | |||
| 46 | 'key' => env('ABLY_KEY'), | |||
| 47 | ], | |||
| 48 | ||||
| 44 | 'redis' => [ | = | 49 | 'redis' => [ |
| 45 | 'driver' => 'redis', | 50 | 'driver' => 'redis', | |
| 46 | 'connection' => 'default', | 51 | 'connection' => 'default', | |
| 47 | ], | 52 | ], | |
| 48 | 53 | |||
| 49 | 'log' => [ | 54 | 'log' => [ | |
| 50 | 'driver' => 'log', | 55 | 'driver' => 'log', | |
| 51 | ], | 56 | ], | |
| 52 | 57 | |||
| 53 | 'null' => [ | 58 | 'null' => [ | |
| 54 | 'driver' => 'null', | 59 | 'driver' => 'null', | |
| 55 | ], | 60 | ], | |
| 56 | 61 | |||
| 57 | ], | 62 | ], | |
| 58 | 63 | |||
| 59 | ]; | 64 | ]; |