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 public function definition(): array
{ {
return [ return [
'name' => fake()->unique()->name(), 'name' => Str::random(8),
'password' => static::$password ??= Hash::make('password'), 'password' => Hash::make('password'),
'remember_token' => Str::random(10),
]; ];
} }
} }