Skip to content

Commit ff13943

Browse files
committed
Merge pull request laravel#3200 from overtrue/patch-3
[5.0]Modify the wording of env() default values
2 parents 6d078c1 + 38e9a24 commit ff13943

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

config/app.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
|
7979
*/
8080

81-
'key' => env('APP_KEY') ?: 'YourSecretKey!!!',
81+
'key' => env('APP_KEY', 'YourSecretKey!!!'),
8282

8383
'cipher' => MCRYPT_RIJNDAEL_128,
8484

config/cache.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
|
1414
*/
1515

16-
'default' => env('CACHE_DRIVER') ?: 'file',
16+
'default' => env('CACHE_DRIVER', 'file'),
1717

1818
/*
1919
|--------------------------------------------------------------------------

config/database.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454

5555
'mysql' => [
5656
'driver' => 'mysql',
57-
'host' => env('DB_HOST') ?: 'localhost',
58-
'database' => env('DB_DATABASE') ?: 'forge',
59-
'username' => env('DB_USERNAME') ?: 'forge',
60-
'password' => env('DB_PASSWORD') ?: '',
57+
'host' => env('DB_HOST', 'localhost'),
58+
'database' => env('DB_DATABASE', 'forge'),
59+
'username' => env('DB_USERNAME', 'forge'),
60+
'password' => env('DB_PASSWORD', ''),
6161
'charset' => 'utf8',
6262
'collation' => 'utf8_unicode_ci',
6363
'prefix' => '',
@@ -66,21 +66,21 @@
6666

6767
'pgsql' => [
6868
'driver' => 'pgsql',
69-
'host' => env('DB_HOST') ?: 'localhost',
70-
'database' => env('DB_DATABASE') ?: 'forge',
71-
'username' => env('DB_USERNAME') ?: 'forge',
72-
'password' => env('DB_PASSWORD') ?: '',
69+
'host' => env('DB_HOST', 'localhost'),
70+
'database' => env('DB_DATABASE', 'forge'),
71+
'username' => env('DB_USERNAME', 'forge'),
72+
'password' => env('DB_PASSWORD', ''),
7373
'charset' => 'utf8',
7474
'prefix' => '',
7575
'schema' => 'public',
7676
],
7777

7878
'sqlsrv' => [
7979
'driver' => 'sqlsrv',
80-
'host' => env('DB_HOST') ?: 'localhost',
81-
'database' => env('DB_DATABASE') ?: 'forge',
82-
'username' => env('DB_USERNAME') ?: 'forge',
83-
'password' => env('DB_PASSWORD') ?: '',
80+
'host' => env('DB_HOST', 'localhost'),
81+
'database' => env('DB_DATABASE', 'forge'),
82+
'username' => env('DB_USERNAME', 'forge'),
83+
'password' => env('DB_PASSWORD', ''),
8484
'prefix' => '',
8585
],
8686

config/queue.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
|
1717
*/
1818

19-
'default' => env('QUEUE_DRIVER') ?: 'sync',
19+
'default' => env('QUEUE_DRIVER', 'sync'),
2020

2121
/*
2222
|--------------------------------------------------------------------------

config/session.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
|
1717
*/
1818

19-
'driver' => env('SESSION_DRIVER') ?: 'file',
19+
'driver' => env('SESSION_DRIVER', 'file'),
2020

2121
/*
2222
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)