Update UserFactory

This commit is contained in:
NoAvatar 2024-10-17 06:16:48 +10:00
parent ac408c0675
commit 19afa7ff82

View File

@ -16,9 +16,8 @@ class UserFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->unique()->name(),
'password' => static::$password ??= Hash::make('password'),
'remember_token' => Str::random(10),
'name' => Str::random(8),
'password' => Hash::make('password'),
];
}
}