Skip to content

Commit 882c306

Browse files
committed
Fixes config publish command
1 parent 4ce908b commit 882c306

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Kernel.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Kernel extends BaseKernel
6363
* @var string[]
6464
*/
6565
protected $hiddenCommands = [
66-
// ...
66+
ConfigPublishCommand::class,
6767
];
6868

6969
/**
@@ -230,7 +230,10 @@ function ($artisan) use ($commands) {
230230

231231
Artisan::starting(
232232
function ($artisan) use ($config) {
233-
$commands = $config->get('commands.hidden', $this->hiddenCommands);
233+
$commands = array_merge(
234+
$config->get('commands.hidden'),
235+
$this->hiddenCommands,
236+
);
234237

235238
collect($artisan->all())->each(
236239
function ($command) use ($artisan, $commands) {

0 commit comments

Comments
 (0)