From 882c3064e3b89483f2e51deadb6cc71df92297cf Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 25 Apr 2024 11:17:42 +0100 Subject: [PATCH] Fixes config publish command --- src/Kernel.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Kernel.php b/src/Kernel.php index d0c3fc88..06cf944c 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) {