digitaltolk / multiple-broadcaster
Multiple broadcast driver for Laravel
Installs: 56 553
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 3
Forks: 5
Open Issues: 2
Requires
- illuminate/broadcasting: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0
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
composer require digitaltolk/multiple-broadcaster
- Next, go into your
config/broadcasting.php
file and add the following lines accordingly:return [ ........ 'connections' => [ 'multiple' => [ 'driver' => 'multiple', 'connections' => ['log', 'pusher'], ], ] ];
- Lastly, on your
.env
file, set theBROADCAST_DRIVER
tomultiple
.