diff --git a/src/Kernel.php b/src/Kernel.php index d0c3fc8..06cf944 100644 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -63,7 +63,7 @@ class Kernel extends BaseKernel * @var string[] */ protected $hiddenCommands = [ - // ... + ConfigPublishCommand::class, ]; /** @@ -230,7 +230,10 @@ function ($artisan) use ($commands) { Artisan::starting( function ($artisan) use ($config) { - $commands = $config->get('commands.hidden', $this->hiddenCommands); + $commands = array_merge( + $config->get('commands.hidden'), + $this->hiddenCommands, + ); collect($artisan->all())->each( function ($command) use ($artisan, $commands) {