Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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\"",
Expand Down Expand Up @@ -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;

Expand Down
Loading