mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update user factory seeder
This commit is contained in:
parent
436dc3032c
commit
b6cee0da95
1 changed files with 4 additions and 3 deletions
|
@ -16,7 +16,8 @@ use Faker\Generator as Faker;
|
||||||
$factory->define(App\User::class, function (Faker $faker) {
|
$factory->define(App\User::class, function (Faker $faker) {
|
||||||
return [
|
return [
|
||||||
'name' => $faker->name,
|
'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
|
'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
|
||||||
'remember_token' => str_random(10),
|
'remember_token' => str_random(10),
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue