broadcasting.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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' => 'default',
  34. ],
  35. ],
  36. ];