Skip to content

Commit

Permalink
Merge pull request #134 from epixian/patch-1
Browse files Browse the repository at this point in the history
new default database name 'laravel'
  • Loading branch information
dejwCake authored Sep 13, 2019
2 parents 5cc03d4 + 267bfbc commit bd8ca5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Commands/CraftableInitializeEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private function strReplaceInFile($fileName, $find, $replaceWith)
*/
private function getDbSettings(): void
{
if (env('DB_DATABASE') === 'homestead' && $this->input->isInteractive()) {
if ((env('DB_DATABASE') === 'homestead' || env('DB_DATABASE') === 'laravel') && $this->input->isInteractive()) {
$dbConnection = $this->choice('What database driver do you use?', ['mysql', 'pgsql'], 1);
if (!empty($dbConnection)) {
$this->strReplaceInFile(
Expand Down

0 comments on commit bd8ca5b

Please sign in to comment.