From 2c7ccb92c09e5c3be260c9b4c190c19d19796006 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 21 Jul 2022 14:40:45 +0100 Subject: [PATCH] Improves console output (#1097) --- composer.json | 3 ++- src/Console/InstallCommand.php | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 577c558c7..8880afb1d 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,8 @@ "require": { "php": "^8.0.2", "ext-json": "*", - "illuminate/support": "^9.0", + "illuminate/console": "^9.21", + "illuminate/support": "^9.21", "jenssegers/agent": "^2.6", "laravel/fortify": "^1.12" }, diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 74ea69514..b02f93349 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -232,8 +232,8 @@ protected function installLivewireStack() } $this->line(''); - $this->info('Livewire scaffolding installed successfully.'); - $this->comment('Please execute "npm install && npm run dev" to build your assets.'); + $this->components->info('Livewire scaffolding installed successfully.'); + $this->components->warn('Please execute the [npm install && npm run dev] commands to build your assets.'); } /** @@ -420,8 +420,8 @@ protected function installInertiaStack() } $this->line(''); - $this->info('Inertia scaffolding installed successfully.'); - $this->comment('Please execute "npm install && npm run dev" to build your assets.'); + $this->components->info('Inertia scaffolding installed successfully.'); + $this->components->warn('Please execute the [npm install && npm run dev] commands to build your assets.'); } /**