From 2a82788ab007576d0b32eb9c733e4d0898fe2442 Mon Sep 17 00:00:00 2001 From: Shlee Date: Sun, 16 Feb 2020 19:34:36 +0800 Subject: [PATCH] Update Installer.php --- app/Console/Commands/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/Installer.php b/app/Console/Commands/Installer.php index 3cbf4ddb..35d4a657 100644 --- a/app/Console/Commands/Installer.php +++ b/app/Console/Commands/Installer.php @@ -221,7 +221,7 @@ class Installer extends Command $envPath = app()->environmentFilePath(); $payload = file_get_contents($envPath); - if ($existing == $this->existingEnv($key, $payload)) { + if ($existing = $this->existingEnv($key, $payload)) { $payload = str_replace("{$key}={$existing}", "{$key}=\"{$value}\"", $payload); $this->storeEnv($payload); } else {