diff --git a/.env.example b/.env.example index 6031abe79..bff24dd74 100644 --- a/.env.example +++ b/.env.example @@ -8,6 +8,7 @@ DB_HOST=localhost DB_DATABASE=cachet DB_USERNAME=homestead DB_PASSWORD=secret +DB_PORT=null CACHE_DRIVER=file SESSION_DRIVER=file diff --git a/config/database.php b/config/database.php index 925a881ba..a1465313b 100644 --- a/config/database.php +++ b/config/database.php @@ -67,6 +67,7 @@ return [ 'database' => env('DB_DATABASE', null), 'username' => env('DB_USERNAME', null), 'password' => env('DB_PASSWORD', null), + 'port' => env('DB_PORT', null), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', @@ -74,23 +75,25 @@ return [ ], 'pgsql' => [ - 'driver' => 'pgsql', - 'host' => env('DB_HOST', null), - 'database' => env('DB_DATABASE', null), - 'username' => env('DB_USERNAME', null), - 'password' => env('DB_PASSWORD', null), - 'charset' => 'utf8', - 'prefix' => '', - 'schema' => 'public', + 'driver' => 'pgsql', + 'host' => env('DB_HOST', null), + 'database' => env('DB_DATABASE', null), + 'username' => env('DB_USERNAME', null), + 'password' => env('DB_PASSWORD', null), + 'port' => env('DB_PORT', null), + 'charset' => 'utf8', + 'prefix' => '', + 'schema' => 'public', ], 'sqlsrv' => [ - 'driver' => 'sqlsrv', - 'host' => env('DB_HOST', null), - 'database' => env('DB_DATABASE', null), - 'username' => env('DB_USERNAME', null), - 'password' => env('DB_PASSWORD', null), - 'prefix' => '', + 'driver' => 'sqlsrv', + 'host' => env('DB_HOST', null), + 'database' => env('DB_DATABASE', null), + 'username' => env('DB_USERNAME', null), + 'password' => env('DB_PASSWORD', null), + 'port' => env('DB_PORT', null), + 'prefix' => '', ], ],