Bladeren bron

Update Installer.php

Shlee 5 jaren geleden
bovenliggende
commit
2a82788ab0
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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 {