Browse Source

Added DB_PORT as a default enviroment variable

TGM 8 years ago
parent
commit
9fc55e8464
2 changed files with 2 additions and 0 deletions
  1. 1 0
      .env.example
  2. 1 0
      config/database.php

+ 1 - 0
.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

+ 1 - 0
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', ''),