Support the ongoing development of Laravel.io →
IOC Packages Architecture

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.

Last updated 2 years ago.
0

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?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

kressaty kressaty Joined 14 Aug 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.