Skip to content

Commit 17d55a9

Browse files
committed
Disable broadcast provider when broadcasting driver is null
Made-with: Cursor
1 parent 7292e8f commit 17d55a9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)