diff --git a/packages/framework/src/Console/Commands/PublishViewsCommand.php b/packages/framework/src/Console/Commands/PublishViewsCommand.php index 725889dd4f5..c66aadecc84 100644 --- a/packages/framework/src/Console/Commands/PublishViewsCommand.php +++ b/packages/framework/src/Console/Commands/PublishViewsCommand.php @@ -42,7 +42,7 @@ public function handle(): int $selected = ($this->argument('category') ?? $this->promptForCategory()) ?: 'all'; - if ($selected !== 'all' && (bool) $this->argument('category') === false) { + if ($selected !== 'all' && (bool) $this->argument('category') === false && ConsoleHelper::canUseLaravelPrompts($this->input)) { $this->infoComment(sprintf('Selected category [%s]', $selected)); }