Commit 83a5602d authored by Taylor Otwell's avatar Taylor Otwell

Use environment options in database config.

parent ce48990b
......@@ -54,10 +54,10 @@ return [
'mysql' => [
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'forge',
'username' => 'forge',
'password' => '',
'host' => getenv('DB_HOST') ?: 'localhost',
'database' => getenv('DB_DATABASE') ?: 'forge',
'username' => getenv('DB_USERNAME') ?: 'forge',
'password' => getenv('DB_PASSWORD') ?: '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
......@@ -65,10 +65,10 @@ return [
'pgsql' => [
'driver' => 'pgsql',
'host' => 'localhost',
'database' => 'forge',
'username' => 'forge',
'password' => '',
'host' => getenv('DB_HOST') ?: 'localhost',
'database' => getenv('DB_DATABASE') ?: 'forge',
'username' => getenv('DB_USERNAME') ?: 'forge',
'password' => getenv('DB_PASSWORD') ?: '',
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
......@@ -76,10 +76,10 @@ return [
'sqlsrv' => [
'driver' => 'sqlsrv',
'host' => 'localhost',
'database' => 'database',
'username' => 'root',
'password' => '',
'host' => getenv('DB_HOST') ?: 'localhost',
'database' => getenv('DB_DATABASE') ?: 'forge',
'username' => getenv('DB_USERNAME') ?: 'forge',
'password' => getenv('DB_PASSWORD') ?: '',
'prefix' => '',
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment