diff --git a/src/Http/Controllers/InstallController.php b/src/Http/Controllers/InstallController.php index 907f466..ab9bfd3 100644 --- a/src/Http/Controllers/InstallController.php +++ b/src/Http/Controllers/InstallController.php @@ -170,7 +170,7 @@ public function saveDatabaseSettings() $dotEnv = Dotenv::create([base_path()]); foreach ($dotEnv->load() as $envVar => $envValue) { if (key_exists($envVar, $updateEnv)) { - $envFileContents = preg_replace('#' . $envVar . '\s*=\s*\"*' . $envValue . '\s*\"\s*#', $envVar . '=' . $updateEnv[$envVar] . "\n", $envFileContents); + $envFileContents = preg_replace('#' . $envVar . '.*=.*' . $envValue . '.*#', $envVar . '=' . $updateEnv[$envVar], $envFileContents); } }