broadcasting.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. */
  13. 'default' => env('BROADCAST_DRIVER', 'pusher'),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Broadcast Connections
  17. |--------------------------------------------------------------------------
  18. |
  19. | Here you may define all of the broadcast connections that will be used
  20. | to broadcast events to other systems or over websockets. Samples of
  21. | each available type of connection are provided inside this array.
  22. |
  23. */
  24. 'connections' => [
  25. 'pusher' => [
  26. 'driver' => 'pusher',
  27. 'key' => env('PUSHER_KEY'),
  28. 'secret' => env('PUSHER_SECRET'),
  29. 'app_id' => env('PUSHER_APP_ID'),
  30. ],
  31. 'redis' => [
  32. 'driver' => 'redis',
  33. 'connection' => env('BROADCAST_REDIS_CONNECTION', 'default'),
  34. ],
  35. 'log' => [
  36. 'driver' => 'log',
  37. ],
  38. ],
  39. ];