mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 21:43:17 +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) {
|
||||
return [
|
||||
'name' => $faker->name,
|
||||
'email' => $faker->unique()->safeEmail,
|
||||
'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
|
||||
'name' => $faker->name,
|
||||
'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),
|
||||
];
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue