diff --git a/src/NewCommand.php b/src/NewCommand.php index cd5c482..242295d 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -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); } }