diff --git a/app/Filament/Pages/Installer/PanelInstaller.php b/app/Filament/Pages/Installer/PanelInstaller.php index 11cbd98c87..b6aea2b098 100644 --- a/app/Filament/Pages/Installer/PanelInstaller.php +++ b/app/Filament/Pages/Installer/PanelInstaller.php @@ -103,14 +103,11 @@ public function submit() $variables = array_get($inputs, 'env'); $this->writeToEnvironment($variables); - // Clear cache - Artisan::call('config:clear'); - Artisan::call('cache:clear'); - // Run migrations Artisan::call('migrate', [ '--force' => true, '--seed' => true, + '--database' => $variables['DB_CONNECTION'], ]); if (!$this->hasCompletedMigrations()) {