diff --git a/.env.example b/.env.example
index 031862bef64..cebc8926a2d 100644
--- a/.env.example
+++ b/.env.example
@@ -2,7 +2,8 @@ APP_ENV=local
APP_DEBUG=true
APP_KEY=SomeRandomString
-DB_HOST=localhost
+DB_CONNECTION=mysql
+DB_HOST=127.0.0.1
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
@@ -11,7 +12,7 @@ CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
-REDIS_HOST=localhost
+REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
diff --git a/composer.json b/composer.json
index 0bd256f1e61..2b8950d8f07 100644
--- a/composer.json
+++ b/composer.json
@@ -28,19 +28,19 @@
]
},
"scripts": {
- "post-install-cmd": [
- "php artisan clear-compiled",
- "php artisan optimize"
- ],
- "post-update-cmd": [
- "php artisan clear-compiled",
- "php artisan optimize"
- ],
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
+ ],
+ "post-install-cmd": [
+ "Illuminate\\Foundation\\ComposerScripts::postInstall",
+ "php artisan optimize"
+ ],
+ "post-update-cmd": [
+ "Illuminate\\Foundation\\ComposerScripts::postUpdate",
+ "php artisan optimize"
]
},
"config": {
diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php
index 0876c70c74f..f596d0b59b5 100644
--- a/database/factories/ModelFactory.php
+++ b/database/factories/ModelFactory.php
@@ -14,7 +14,7 @@
$factory->define(App\User::class, function (Faker\Generator $faker) {
return [
'name' => $faker->name,
- 'email' => $faker->email,
+ 'email' => $faker->safeEmail,
'password' => bcrypt(str_random(10)),
'remember_token' => str_random(10),
];
diff --git a/phpunit.xml b/phpunit.xml
index cc0841c1d3c..3e884d179cc 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -10,12 +10,15 @@
stopOnFailure="false">
- ./tests/
+ ./tests
-
- app/
+
+ ./app
+
+ ./app/Http/routes.php
+