From a4e268095c54c2ce31c8b1f2bbc6ffce8232c30b Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Wed, 28 Oct 2020 13:10:07 +0530 Subject: [PATCH] Config Cache Changes Added In Very Begining --- packages/Webkul/Core/src/Console/Commands/Install.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/Webkul/Core/src/Console/Commands/Install.php b/packages/Webkul/Core/src/Console/Commands/Install.php index 205137dba..04a02cc5c 100644 --- a/packages/Webkul/Core/src/Console/Commands/Install.php +++ b/packages/Webkul/Core/src/Console/Commands/Install.php @@ -39,6 +39,11 @@ class Install extends Command { $this->checkForEnvFile(); + // cached new changes + $this->warn('Step: Caching new changes...'); + $cached = $this->call('config:cache'); + $this->info($cached); + // running `php artisan migrate` $this->warn('Step: Migrating all tables into database...'); $migrate = $this->call('migrate:fresh'); @@ -64,11 +69,6 @@ class Install extends Command $result = shell_exec('composer dump-autoload'); $this->info($result); - // cached new changes - $this->warn('Step: Caching new changes...'); - $cached = $this->call('config:cache'); - $this->info($cached); - $this->info('-----------------------------'); $this->info('Congratulations!'); $this->info('The installation has been finished and you can now use Bagisto.');