mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update user factory seeder
This commit is contained in:
parent
436dc3032c
commit
b6cee0da95
1 changed files with 4 additions and 3 deletions
|
@ -15,9 +15,10 @@ 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),
|
||||||
'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
|
'email' => str_random(8).$faker->unique()->safeEmail,
|
||||||
|
'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
|
||||||
'remember_token' => str_random(10),
|
'remember_token' => str_random(10),
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue