From 9fc55e84644e4199d763a7acdea42bc4734a1eae Mon Sep 17 00:00:00 2001 From: TGM Date: Tue, 1 Mar 2016 14:29:05 +0200 Subject: [PATCH] Added DB_PORT as a default enviroment variable --- .env.example | 1 + config/database.php | 1 + 2 files changed, 2 insertions(+) diff --git a/.env.example b/.env.example index a50eace2..86aab15f 100644 --- a/.env.example +++ b/.env.example @@ -4,6 +4,7 @@ APP_KEY=SomeRandomString APP_URL=http://localhost DB_HOST=127.0.0.1 +DB_PORT=3306 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret diff --git a/config/database.php b/config/database.php index edd64256..b8a9b372 100644 --- a/config/database.php +++ b/config/database.php @@ -55,6 +55,7 @@ return [ 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), + 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''),