Skip to content

Commit cdb81ca

Browse files
authored
Would be useful if DB_DATABASE is updated on the .env.example as well (#167)
1 parent 74e8269 commit cdb81ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/NewCommand.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
109109
'DB_DATABASE='.str_replace('-', '_', strtolower($name)),
110110
$directory.'/.env'
111111
);
112+
113+
$this->replaceInFile(
114+
'DB_DATABASE=laravel',
115+
'DB_DATABASE='.str_replace('-', '_', strtolower($name)),
116+
$directory.'/.env.example'
117+
);
112118
}
113119

114120
if ($input->getOption('jet')) {

0 commit comments

Comments
 (0)