Skip to content

Commit

Permalink
Fixes config publish command
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Apr 25, 2024
1 parent 4ce908b commit 882c306
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Kernel.php
Expand Up @@ -63,7 +63,7 @@ class Kernel extends BaseKernel
* @var string[]
*/
protected $hiddenCommands = [
// ...
ConfigPublishCommand::class,
];

/**
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 882c306

Please sign in to comment.