Skip to content

Commit f9fce30

Browse files
authored
[6.x] Disable broadcast provider when broadcasting driver is null (#14471)
1 parent 7292e8f commit f9fce30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Providers/BroadcastServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ protected function variables()
5050

5151
protected function enabled()
5252
{
53+
if (config('broadcasting.default') === 'null') {
54+
return false;
55+
}
56+
5357
return in_array(
5458
\Illuminate\Broadcasting\BroadcastServiceProvider::class,
5559
array_keys($this->app->getLoadedProviders())

0 commit comments

Comments
 (0)