diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index d1db88a90..3c28a1d7d 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -154,9 +154,11 @@ protected function installLivewireStack() return false; } - $this->call('install:api', [ - '--without-migration-prompt' => true, - ]); + if ($this->option('api')) { + $this->call('install:api', [ + '--without-migration-prompt' => true, + ]); + } // Update Configuration... $this->replaceInFile('inertia', 'livewire', config_path('jetstream.php')); @@ -340,9 +342,11 @@ protected function installInertiaStack() return false; } - $this->call('install:api', [ - '--without-migration-prompt' => true, - ]); + if ($this->option('api')) { + $this->call('install:api', [ + '--without-migration-prompt' => true, + ]); + } // Install NPM packages... $this->updateNodePackages(function ($packages) {