This driver will enable your app to support multiple drivers for broadcasting.
It will just loop through your specified broadcast connections and execute each just like when you set it as default.
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.
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
.