Update UserFactory
This commit is contained in:
parent
ac408c0675
commit
19afa7ff82
@ -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'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user