From 177f0bd5ad94d138853d1454881a7dfa8e9aac8d Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 10 Apr 2024 14:17:48 -0500 Subject: [PATCH] Revert "install api optionally (#1470)" This reverts commit bafc92d0b7240dc2c8ef53c925b7b9dac0544110. --- src/Console/InstallCommand.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 3c28a1d7d..d1db88a90 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -154,11 +154,9 @@ protected function installLivewireStack() return false; } - if ($this->option('api')) { - $this->call('install:api', [ - '--without-migration-prompt' => true, - ]); - } + $this->call('install:api', [ + '--without-migration-prompt' => true, + ]); // Update Configuration... $this->replaceInFile('inertia', 'livewire', config_path('jetstream.php')); @@ -342,11 +340,9 @@ protected function installInertiaStack() return false; } - if ($this->option('api')) { - $this->call('install:api', [ - '--without-migration-prompt' => true, - ]); - } + $this->call('install:api', [ + '--without-migration-prompt' => true, + ]); // Install NPM packages... $this->updateNodePackages(function ($packages) {