浏览代码

Update Installer.php

Shlee 5 年之前
父节点
当前提交
2a82788ab0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Console/Commands/Installer.php

+ 1 - 1
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 {