From a0bca2668ae02ebb79e52eac2d88170434142c80 Mon Sep 17 00:00:00 2001 From: Shlee Date: Wed, 15 Jun 2022 19:38:40 +0930 Subject: [PATCH] Update Installer.php --- app/Console/Commands/Installer.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Console/Commands/Installer.php b/app/Console/Commands/Installer.php index f6b8b7373..61632d3cc 100644 --- a/app/Console/Commands/Installer.php +++ b/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())) {