Skip to content

Commit 9fc55e8

Browse files
committed
Added DB_PORT as a default enviroment variable
1 parent fc12337 commit 9fc55e8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.env.example

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ APP_KEY=SomeRandomString
44
APP_URL=http://localhost
55

66
DB_HOST=127.0.0.1
7+
DB_PORT=3306
78
DB_DATABASE=homestead
89
DB_USERNAME=homestead
910
DB_PASSWORD=secret

config/database.php

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
'mysql' => [
5656
'driver' => 'mysql',
5757
'host' => env('DB_HOST', 'localhost'),
58+
'port' => env('DB_PORT', '3306'),
5859
'database' => env('DB_DATABASE', 'forge'),
5960
'username' => env('DB_USERNAME', 'forge'),
6061
'password' => env('DB_PASSWORD', ''),

0 commit comments

Comments
 (0)