diff --git a/composer.json b/composer.json index 609b2e2..f6397d9 100644 --- a/composer.json +++ b/composer.json @@ -11,10 +11,10 @@ ], "require": { "php": "^8.0", - "illuminate/console": "^9.0", - "illuminate/filesystem": "^9.0", - "illuminate/support": "^9.0", - "illuminate/validation": "^9.0" + "illuminate/console": "^9.21", + "illuminate/filesystem": "^9.21", + "illuminate/support": "^9.21", + "illuminate/validation": "^9.21" }, "require-dev": { "orchestra/testbench": "^7.0" diff --git a/src/AuthCommand.php b/src/AuthCommand.php index 573c2d6..b0084b2 100644 --- a/src/AuthCommand.php +++ b/src/AuthCommand.php @@ -64,7 +64,7 @@ public function handle() $this->exportBackend(); } - $this->info('Authentication scaffolding generated successfully.'); + $this->components->info('Authentication scaffolding generated successfully.'); } /** @@ -92,7 +92,7 @@ protected function exportViews() { foreach ($this->views as $key => $value) { if (file_exists($view = $this->getViewPath($value)) && ! $this->option('force')) { - if (! $this->confirm("The [{$value}] view already exists. Do you want to replace it?")) { + if (! $this->components->confirm("The [$value] view already exists. Do you want to replace it?")) { continue; } } @@ -116,7 +116,7 @@ protected function exportBackend() $controller = app_path('Http/Controllers/HomeController.php'); if (file_exists($controller) && ! $this->option('force')) { - if ($this->confirm("The [HomeController.php] file already exists. Do you want to replace it?")) { + if ($this->components->confirm("The [HomeController.php] file already exists. Do you want to replace it?")) { file_put_contents($controller, $this->compileControllerStub()); } } else { diff --git a/src/ControllersCommand.php b/src/ControllersCommand.php index 6312ab7..a36960c 100644 --- a/src/ControllersCommand.php +++ b/src/ControllersCommand.php @@ -44,6 +44,6 @@ public function handle() ); }); - $this->info('Authentication scaffolding generated successfully.'); + $this->components->info('Authentication scaffolding generated successfully.'); } } diff --git a/src/UiCommand.php b/src/UiCommand.php index 0315d1e..8f76979 100644 --- a/src/UiCommand.php +++ b/src/UiCommand.php @@ -57,8 +57,8 @@ protected function bootstrap() { Presets\Bootstrap::install(); - $this->info('Bootstrap scaffolding installed successfully.'); - $this->comment('Please run "npm install && npm run dev" to compile your fresh scaffolding.'); + $this->components->info('Bootstrap scaffolding installed successfully.'); + $this->components->warn('Please run [npm install && npm run dev] to compile your fresh scaffolding.'); } /** @@ -71,8 +71,8 @@ protected function vue() Presets\Bootstrap::install(); Presets\Vue::install(); - $this->info('Vue scaffolding installed successfully.'); - $this->comment('Please run "npm install && npm run dev" to compile your fresh scaffolding.'); + $this->components->info('Vue scaffolding installed successfully.'); + $this->components->warn('Please run [npm install && npm run dev] to compile your fresh scaffolding.'); } /** @@ -85,7 +85,7 @@ protected function react() Presets\Bootstrap::install(); Presets\React::install(); - $this->info('React scaffolding installed successfully.'); - $this->comment('Please run "npm install && npm run dev" to compile your fresh scaffolding.'); + $this->components->info('React scaffolding installed successfully.'); + $this->components->warn('Please run [npm install && npm run dev] to compile your fresh scaffolding.'); } }