Use safeEmail instead

Faker’s `email` method can accidentally generate email addresses. This ensures “safe” addresses are only ever generated by the factory, to avoid spamming actual mailboxes if mail was sent in a loop etc.
This commit is contained in:
Martin Bean 2016-02-16 12:02:26 +00:00
parent c751b33d01
commit 00e5c4465c
1 changed files with 1 additions and 1 deletions

View File

@ -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),
];