Skip to content

Commit

Permalink
Update InstallController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-jennings authored Jan 9, 2020
1 parent a50f28d commit 7832d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/InstallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 7832d89

Please sign in to comment.