Skip to content

Commit 70f8bb6

Browse files
committed
Merge pull request laravel#3738 from laravel/backport
[5.1] Backport various changes
2 parents 94c9db2 + a6e0a2d commit 70f8bb6

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

.env.example

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ APP_ENV=local
22
APP_DEBUG=true
33
APP_KEY=SomeRandomString
44

5-
DB_HOST=localhost
5+
DB_CONNECTION=mysql
6+
DB_HOST=127.0.0.1
67
DB_DATABASE=homestead
78
DB_USERNAME=homestead
89
DB_PASSWORD=secret
@@ -11,7 +12,7 @@ CACHE_DRIVER=file
1112
SESSION_DRIVER=file
1213
QUEUE_DRIVER=sync
1314

14-
REDIS_HOST=localhost
15+
REDIS_HOST=127.0.0.1
1516
REDIS_PASSWORD=null
1617
REDIS_PORT=6379
1718

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@
2828
]
2929
},
3030
"scripts": {
31-
"post-install-cmd": [
32-
"php artisan clear-compiled",
33-
"php artisan optimize"
34-
],
35-
"post-update-cmd": [
36-
"php artisan clear-compiled",
37-
"php artisan optimize"
38-
],
3931
"post-root-package-install": [
4032
"php -r \"copy('.env.example', '.env');\""
4133
],
4234
"post-create-project-cmd": [
4335
"php artisan key:generate"
36+
],
37+
"post-install-cmd": [
38+
"Illuminate\\Foundation\\ComposerScripts::postInstall",
39+
"php artisan optimize"
40+
],
41+
"post-update-cmd": [
42+
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
43+
"php artisan optimize"
4444
]
4545
},
4646
"config": {

database/factories/ModelFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
$factory->define(App\User::class, function (Faker\Generator $faker) {
1515
return [
1616
'name' => $faker->name,
17-
'email' => $faker->email,
17+
'email' => $faker->safeEmail,
1818
'password' => bcrypt(str_random(10)),
1919
'remember_token' => str_random(10),
2020
];

phpunit.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
stopOnFailure="false">
1111
<testsuites>
1212
<testsuite name="Application Test Suite">
13-
<directory>./tests/</directory>
13+
<directory suffix="Test.php">./tests</directory>
1414
</testsuite>
1515
</testsuites>
1616
<filter>
17-
<whitelist>
18-
<directory suffix=".php">app/</directory>
17+
<whitelist processUncoveredFilesFromWhitelist="true">
18+
<directory suffix=".php">./app</directory>
19+
<exclude>
20+
<file>./app/Http/routes.php</file>
21+
</exclude>
1922
</whitelist>
2023
</filter>
2124
<php>

0 commit comments

Comments
 (0)