Commit dcf97180 authored by Kai Rienow's avatar Kai Rienow Committed by GitHub

Add unique modifier

parent 49a48100
...@@ -16,7 +16,7 @@ $factory->define(App\User::class, function (Faker\Generator $faker) { ...@@ -16,7 +16,7 @@ $factory->define(App\User::class, function (Faker\Generator $faker) {
return [ return [
'name' => $faker->name, 'name' => $faker->name,
'email' => $faker->safeEmail, 'email' => $faker->unique()->safeEmail,
'password' => $password ?: $password = bcrypt('secret'), 'password' => $password ?: $password = bcrypt('secret'),
'remember_token' => str_random(10), 'remember_token' => str_random(10),
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment