From 19afa7ff826e8e76df1314eb3901318b4f232167 Mon Sep 17 00:00:00 2001 From: NoAvatar Date: Thu, 17 Oct 2024 06:16:48 +1000 Subject: [PATCH] Update UserFactory --- database/factories/UserFactory.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index faedf93..d653432 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -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'), ]; } }