Skip to content

Commit a40ef66

Browse files
authored
Remove database switching middleware for web group
Removed middleware prepending for web group to switch database.
1 parent 0ff9dc0 commit a40ef66

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/DuskParallelServiceProvider.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,5 @@ public function boot(): void
3939
$this->app->afterResolving(EncryptCookies::class, function (EncryptCookies $middleware) {
4040
$middleware->disableFor('dusk_db_token');
4141
});
42-
43-
// Prepend to the web group so the database is switched before StartSession
44-
// (which may connect to the DB) and before any authenticated route handlers.
45-
$this->app['router']->prependMiddlewareToGroup('web', SwitchDatabaseForParallelTesting::class);
4642
}
4743
}

0 commit comments

Comments
 (0)