Skip to content

Commit e62ae4a

Browse files
committed
fix: user factory password hashing
1 parent 5ad0b3b commit e62ae4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

database/factories/Domain/Users/Models/UserFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use App\Domain\Users\Models\User;
66
use Illuminate\Database\Eloquent\Factories\Factory;
7+
use Illuminate\Support\Facades\Hash;
78
use Illuminate\Support\Str;
89

910
/**
@@ -29,7 +30,7 @@ public function definition(): array
2930
'name' => fake()->name(),
3031
'email' => fake()->unique()->safeEmail(),
3132
'email_verified_at' => now(),
32-
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
33+
'password' => Hash::make('password'), // password
3334
'remember_token' => Str::random(10),
3435
];
3536
}

0 commit comments

Comments
 (0)