I've created an SNS driver for the Broadcasting package that works well in Laravel. However, I really need to get it working in Lumen, and am stuck figuring out where the issue is. I'm 90% sure it has something to do with the way Lumen handles service providers, but am unsure how to fix it.
The driver: https://github.com/ringtrail/laravel-sns-driver
The first issue is Lumen needs an instance of $app passed to the make function on line 10 of SnsBroadcastServiceProvider.php (this is easy, now the package will load).
$this->app->make('Illuminate\Broadcasting\BroadcastManager', [$this->app])->extend(
...
However, after that, I get a 502 from Nginx. It appears that when the main Broadcast service provider is loaded, it has "forgotten" that I've extended it with a new driver.
Any help here would be hugely appreciated.
I'm experiencing the exact same problem. BroadcastManager isn't the one being used when broadcasting events, it seems. BroadcasterContract gets used. Still don't yet have a solution myself. Did you ever figure it out?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community