From 4ad44dd671b82aa3fdd92a179657ad3508d43276 Mon Sep 17 00:00:00 2001 From: Mathias Grimm Date: Sun, 3 Aug 2025 10:22:35 -0600 Subject: [PATCH 1/2] fix: Prompting for Database when using Starter Kits **Previously:** Always using sqlite. **With this PR:** Prompting for database when Interactive. --- src/NewCommand.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index 324c3b2..9865750 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -224,7 +224,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $composer = $this->findComposer(); $phpBinary = $this->phpBinary(); - $createProjectCommand = $composer." create-project laravel/laravel \"$directory\" $version --remove-vcs --prefer-dist --no-scripts"; + $createProjectCommand = $composer." create-project laravel/laravel \"$directory\" $version --remove-vcs --prefer-dist"; $starterKit = $this->getStarterKit($input); @@ -240,6 +240,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int } } + $createProjectCommand.=' --no-scripts'; + $commands = [ $createProjectCommand, $composer." run post-root-package-install -d \"$directory\"", @@ -511,7 +513,7 @@ protected function promptForDatabaseOptions(string $directory, InputInterface $i $databaseOptions = $this->databaseOptions() )->keys()->first(); - if (! $input->getOption('database') && $this->usingStarterKit($input)) { + if (! $input->getOption('database') && $this->usingStarterKit($input) && ! $input->isInteractive()) { // Starter kits will already be migrated in post composer create-project command... $migrate = false; From bbf997187a85101dbb083072920f2ebdc998af16 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sun, 3 Aug 2025 16:22:45 +0000 Subject: [PATCH 2/2] Apply fixes from StyleCI --- src/NewCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index 9865750..5a83dfb 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -240,7 +240,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int } } - $createProjectCommand.=' --no-scripts'; + $createProjectCommand .= ' --no-scripts'; $commands = [ $createProjectCommand,