diff --git a/config/database.php b/config/database.php index 7705047d0..7029265cf 100644 --- a/config/database.php +++ b/config/database.php @@ -46,7 +46,17 @@ return [ 'mysql' => [ 'driver' => 'mysql', 'url' => env('DATABASE_URL'), - 'host' => env('DB_HOST', '127.0.0.1'), + 'read' => [ + 'host' => [ + env('DB_HOST_READ', env('DB_HOST', '127.0.0.1')), + ], + ], + 'write' => [ + 'host' => [ + env('DB_HOST_WRITE', env('DB_HOST', '127.0.0.1')), + ], + ], + 'sticky' => env('DB_STICKY', true), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'),