From cad9b05e04292d4822d604706c6c40aa90ca335d Mon Sep 17 00:00:00 2001 From: EwelinaSkrzypacz Date: Tue, 3 Dec 2024 07:41:54 +0100 Subject: [PATCH] - fix factory --- database/factories/UserFactory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 31609eda..d9d1ce0b 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -5,6 +5,7 @@ namespace Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; +use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; use Interns2024c\Models\User; @@ -19,7 +20,7 @@ public function definition(): array "name" => fake()->name(), "email" => fake()->unique()->safeEmail(), "email_verified_at" => now(), - "password" => "$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi", + "password" => Hash::make("password"), "remember_token" => Str::random(10), ]; }