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