broadcasting.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2017~2021 LARAVEL研发中心
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://www.laravel.cn
  8. // +----------------------------------------------------------------------
  9. // | Author: laravel开发员 <laravel.qq.com>
  10. // +----------------------------------------------------------------------
  11. return [
  12. /*
  13. |--------------------------------------------------------------------------
  14. | Default Broadcaster
  15. |--------------------------------------------------------------------------
  16. |
  17. | This option controls the default broadcaster that will be used by the
  18. | framework when an event needs to be broadcast. You may set this to
  19. | any of the connections defined in the "connections" array below.
  20. |
  21. | Supported: "pusher", "redis", "log", "null"
  22. |
  23. */
  24. 'default' => env('BROADCAST_DRIVER', 'null'),
  25. /*
  26. |--------------------------------------------------------------------------
  27. | Broadcast Connections
  28. |--------------------------------------------------------------------------
  29. |
  30. | Here you may define all of the broadcast connections that will be used
  31. | to broadcast events to other systems or over websockets. Samples of
  32. | each available type of connection are provided inside this array.
  33. |
  34. */
  35. 'connections' => [
  36. 'pusher' => [
  37. 'driver' => 'pusher',
  38. 'key' => env('PUSHER_APP_KEY'),
  39. 'secret' => env('PUSHER_APP_SECRET'),
  40. 'app_id' => env('PUSHER_APP_ID'),
  41. 'options' => [
  42. 'cluster' => env('PUSHER_APP_CLUSTER'),
  43. 'useTLS' => true,
  44. ],
  45. ],
  46. 'redis' => [
  47. 'driver' => 'redis',
  48. 'connection' => 'default',
  49. ],
  50. 'log' => [
  51. 'driver' => 'log',
  52. ],
  53. 'null' => [
  54. 'driver' => 'null',
  55. ],
  56. ],
  57. ];