We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81d41b4 commit c07996eCopy full SHA for c07996e
1 file changed
src/Bootstrappers/BroadcastingConfigBootstrapper.php
@@ -89,6 +89,9 @@ public function bootstrap(Tenant $tenant): void
89
// Swap the currently bound Broadcaster singleton (resolved earlier with the central credentials)
90
// for the tenant BroadcastManager's default broadcaster, so that anything resolving the Broadcaster
91
// contract gets the same tenant broadcaster that the manager uses, instead of the stale central one.
92
+ // The closure runs immediately (the extended singleton is already resolved), and it's also what makes
93
+ // channel auth work in tenant context -- the broadcaster resolved here gets cached as the tenant
94
+ // manager's default driver and receives the central channel auth closures (see below).
95
$this->app->extend(BroadcasterContract::class, function (BroadcasterContract $centralBroadcaster) {
96
$tenantBroadcaster = $this->app->make(BroadcastManager::class)->connection();
97
0 commit comments