Skip to content

Commit bd01f28

Browse files
committed
improve database config
1 parent 283b9aa commit bd01f28

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

config/database.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
|--------------------------------------------------------------------------
77
|
88
| This option defines the default database driver that is used when a query
9-
| or model is instantiated. See the list of connections below for more
10-
| details or add your own to the list. There is one by default.
9+
| or model is instantiated. See the list of drivers below the available
10+
| options. You can add your own to the list.
1111
|
1212
*/
1313
'default' => typerocket_env('TYPEROCKET_DATABASE_DEFAULT', 'wp'),
@@ -28,10 +28,10 @@
2828

2929
'alt' => [
3030
'driver' => '\TypeRocket\Database\Connectors\CoreDatabaseConnector',
31-
'username' => '',
32-
'password' => '',
33-
'database' => '',
34-
'host' => '',
31+
'username' => typerocket_env('TYPEROCKET_ALT_DATABASE_USER'),
32+
'password' => typerocket_env('TYPEROCKET_ALT_DATABASE_PASSWORD'),
33+
'database' => typerocket_env('TYPEROCKET_ALT_DATABASE_DATABASE'),
34+
'host' => typerocket_env('TYPEROCKET_ALT_DATABASE_HOST'),
3535
],
3636
]
3737
];

0 commit comments

Comments
 (0)