Browse Source

Add unique modifier

Kai Rienow 8 years ago
parent
commit
dcf971805d
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),
     ];