Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Update FinalInstallManager.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Tropicalista authored Jan 18, 2018
1 parent 9a7c4bc commit c3335a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Helpers/FinalInstallManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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());
Expand Down

0 comments on commit c3335a4

Please sign in to comment.