From fd42e10a5f946cb4258edb517195cd46ecdb8553 Mon Sep 17 00:00:00 2001 From: Roberto Aguilar Date: Mon, 14 Nov 2016 15:19:31 -0600 Subject: [PATCH] Changes localhost to 127.0.0.1 in database config In https://github.com/laravel/laravel/pull/3641 was decided to use `127.0.0.1` instead of `localhost` to avoid DNS lookups This change is to maintain consistency between `.env` and `database.php` --- config/database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/database.php b/config/database.php index fd22e8e9892..55e6077bff9 100644 --- a/config/database.php +++ b/config/database.php @@ -54,7 +54,7 @@ 'mysql' => [ 'driver' => 'mysql', - 'host' => env('DB_HOST', 'localhost'), + 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), @@ -68,7 +68,7 @@ 'pgsql' => [ 'driver' => 'pgsql', - 'host' => env('DB_HOST', 'localhost'), + 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '5432'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'),