digitaltolk/multiple-broadcaster

Multiple broadcast driver for Laravel

Maintainers

Package info

github.com/DigitalTolk/laravel-multiple-broadcaster

pkg:composer/digitaltolk/multiple-broadcaster

Statistics

Installs: 60 361

Dependents: 0

Suggesters: 0

Stars: 15

Open Issues: 2

v1.2.0 2023-05-09 08:38 UTC

This package is auto-updated.

Last update: 2026-03-13 11:29:56 UTC


README

This driver will enable your app to support multiple drivers for broadcasting.

How does this driver work?

It will just loop through your specified broadcast connections and execute each just like when you set it as default.

Requirements

You must already have configured broadcasting. It is my assumption that you already have a working broadcast configuration that you wish to extend it and support other broadcast driver simultaneously.

Installation

  1. composer require digitaltolk/multiple-broadcaster
  2. Next, go into your config/broadcasting.php file and add the following lines accordingly:
       return [
           ........
        
           'connections' => [
               'multiple' => [
                   'driver' => 'multiple',
                   'connections' => ['log', 'pusher'],
               ],
           ]
       ];
  3. Lastly, on your .env file, set the BROADCAST_DRIVER to multiple.

Authors