diff --git a/src/NewCommand.php b/src/NewCommand.php index 324c3b2..5a83dfb 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;