fix setup env writing

This commit is contained in:
Joseph Cohen
2016-07-11 13:00:00 -05:00
parent ac1355771c
commit e17196d4c9

View File

@@ -250,10 +250,11 @@ class SetupController extends Controller
try {
(new Dotenv($dir, $file))->load();
$envValue = env(strtoupper($key)) ?: 'null';
$envKey = strtoupper($key);
$envValue = env($envKey) ?: 'null';
file_put_contents($path, str_replace(
$envValue, $value, file_get_contents($path)
$envKey.'='.$envValue, $envKey.'='.$value, file_get_contents($path)
));
} catch (InvalidPathException $e) {
//