Skip to content

Commit ed762bd

Browse files
committed
Update Browser.php
1 parent 25f2e4b commit ed762bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Middleware/SwitchDatabaseForParallelTesting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function handle(Request $request, Closure $next): mixed
1515
$base = preg_replace('/_test_\d+$/', '', config('database.connections.' . config('database.default') . '.database'));
1616
$testDatabase = "{$base}_test_{$token}";
1717

18-
foreach (array_unique([config('database.default'), 'mysql-elevated', 'mysql-replica']) as $connection) {
18+
foreach (array_keys(config('database.connections')) as $connection) {
1919
Config::set("database.connections.{$connection}.database", $testDatabase);
2020
DB::purge($connection);
2121
}

0 commit comments

Comments
 (0)