From c3335a4371d13b54869f93b45fb35529928a43f0 Mon Sep 17 00:00:00 2001 From: Tropicalista Date: Thu, 18 Jan 2018 02:39:44 +0100 Subject: [PATCH] Update FinalInstallManager.php --- src/Helpers/FinalInstallManager.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Helpers/FinalInstallManager.php b/src/Helpers/FinalInstallManager.php index d557772..1994192 100644 --- a/src/Helpers/FinalInstallManager.php +++ b/src/Helpers/FinalInstallManager.php @@ -32,7 +32,9 @@ public function runFinal() private static function generateKey($outputLog) { try{ - Artisan::call('key:generate', ["--force"=> true], $outputLog); + if (config('installer.final.key')){ + Artisan::call('key:generate', ["--force"=> true], $outputLog); + } } catch(Exception $e){ return $this->response($e->getMessage()); @@ -50,7 +52,9 @@ private static function generateKey($outputLog) private static function publishVendorAssets($outputLog) { try{ - Artisan::call('vendor:publish', ['--all' => true], $outputLog); + if (config('installer.final.publish')){ + Artisan::call('vendor:publish', ['--all' => true], $outputLog); + } } catch(Exception $e){ return $this->response($e->getMessage());