Explorar o código

Update Installer.php

Shlee %!s(int64=3) %!d(string=hai) anos
pai
achega
a0bca2668a
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      app/Console/Commands/Installer.php

+ 6 - 0
app/Console/Commands/Installer.php

@@ -111,6 +111,12 @@ class Installer extends Command
 
     protected function envCreate()
     {
+        if( $this->option('dangerously-overwrite-env') ) {
+            $this->line('');
+            $this->error('Existing .env File Found - Renaming to .env.danger');
+            exec('cp .env .env.danger');
+        }
+        
         $this->line('');
         $this->info('Creating .env if required');
         if(!file_exists(app()->environmentFilePath())) {