Skip to content

Commit

Permalink
Update NewCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Aug 22, 2024
1 parent 32d45c6 commit f9139d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int
if ($database === 'sqlite') {
touch($directory.'/database/database.sqlite');
}

$commands = [
trim(sprintf(
$this->phpBinary().' artisan migrate %s',
! $input->isInteractive() ? '--no-interaction' : '',
)),
];

$this->runCommands($commands, $input, $output, workingPath: $directory);
}
}
Expand Down

0 comments on commit f9139d7

Please sign in to comment.