From 2c45bddb110b464894638b4cb3459deecd08b3ba Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Wed, 11 Sep 2019 06:41:48 +0530 Subject: [PATCH] Command line installation utility, console status strings written. --- app/Console/Commands/BagistoInstall.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/BagistoInstall.php b/app/Console/Commands/BagistoInstall.php index f83046ae9..f17a2f2b4 100644 --- a/app/Console/Commands/BagistoInstall.php +++ b/app/Console/Commands/BagistoInstall.php @@ -136,18 +136,26 @@ class BagistoInstall extends Command \Artisan::call('config:cache'); + $this->info('Running migrations...'); + \Artisan::call('migrate'); - $this->info('Migrations complete'); + $this->info('Migration completed.'); + + $this->info('Running seeders...'); \Artisan::call('db:seed', ['--force' => true]); - $this->info('Seeding complete'); + $this->info('Seeders finished.'); \Artisan::call('storage:link'); + $this->info('Storage link created...'); + \Artisan::call('vendor:publish', [0]); + $this->info('All provider tags are published...'); + $this->info('Installation completed.'); $this->info('Please write us: SUPPORT@BAGISTO.COM');