Update user factory seeder

This commit is contained in:
Daniel Supernault 2018-11-03 22:05:47 -06:00
parent 436dc3032c
commit b6cee0da95
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -16,7 +16,8 @@ use Faker\Generator as Faker;
$factory->define(App\User::class, function (Faker $faker) {
return [
'name' => $faker->name,
'email' => $faker->unique()->safeEmail,
'username' => str_replace('.', '', $faker->unique()->userName),
'email' => str_random(8).$faker->unique()->safeEmail,
'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
'remember_token' => str_random(10),
];