broadcasting.php 1.8 KB

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