Browse Source

Merge pull request #3951 from krienow/patch-d57d11

Add unique modifier
Taylor Otwell 8 years ago
parent
commit
f777e894d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      database/factories/ModelFactory.php

+ 1 - 1
database/factories/ModelFactory.php

@@ -16,7 +16,7 @@ $factory->define(App\User::class, function (Faker\Generator $faker) {
 
     return [
         'name' => $faker->name,
-        'email' => $faker->safeEmail,
+        'email' => $faker->unique()->safeEmail,
         'password' => $password ?: $password = bcrypt('secret'),
         'remember_token' => str_random(10),
     ];