Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 21db4b3

Browse files
committed
Using the concatenated string for the config retrieve
1 parent d5a90d8 commit 21db4b3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/WebSocketsServiceProvider.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ public function register()
7474
$driver = config('websockets.statistics.driver');
7575

7676
return $this->app->make(
77-
config('websockets.statistics')[$driver]['driver']
78-
??
79-
\BeyondCode\LaravelWebSockets\Statistics\Drivers\DatabaseDriver::class
77+
config(
78+
"websockets.statistics.{$driver}.driver",
79+
\BeyondCode\LaravelWebSockets\Statistics\Drivers\DatabaseDriver::class
80+
)
8081
);
8182
});
8283
}

0 commit comments

Comments
 (0)