From: Vincent Vanwaelscappel Date: Tue, 11 Jun 2019 15:42:02 +0000 (+0200) Subject: #2810 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=850e76aa072c9d02de62e42016429c3041ae6ebc;p=cubist_cms-back.git #2810 --- diff --git a/src/CubistBackpackServiceProvider.php b/src/CubistBackpackServiceProvider.php index 5bd800b..024f82a 100644 --- a/src/CubistBackpackServiceProvider.php +++ b/src/CubistBackpackServiceProvider.php @@ -4,6 +4,7 @@ namespace Cubist\Backpack; use Cubist\Backpack\app\Console\Command\MigrateCommand; use Cubist\Backpack\app\Console\Commands\GenerateCommand; +use Cubist\Backpack\app\Console\Commands\InstallCommand; use Illuminate\Support\ServiceProvider; class CubistBackpackServiceProvider extends ServiceProvider @@ -50,6 +51,6 @@ class CubistBackpackServiceProvider extends ServiceProvider // $loader = \Illuminate\Foundation\AliasLoader::getInstance(); // $loader->alias('Template', \Backpack\Settings\app\Models\Template::class); - $this->commands([GenerateCommand::class, MigrateCommand::class]); + $this->commands([InstallCommand::class, GenerateCommand::class, MigrateCommand::class]); } } diff --git a/src/app/Console/Commands/InstallCommand.php b/src/app/Console/Commands/InstallCommand.php index 397042c..1a7b406 100644 --- a/src/app/Console/Commands/InstallCommand.php +++ b/src/app/Console/Commands/InstallCommand.php @@ -34,6 +34,7 @@ class InstallCommand extends CubistCommand 'php artisan migrate', 'php artisan cubist:magic:migrate' ], + 'Clear caches' => ['php artisan cache:clear'], ]; $this->progressBar = $this->output->createProgressBar(count($commands));