Skip to content

Commit 3c59b1e

Browse files
Merge pull request #231 from laravel/revert_hash_changes
Revert Hash Changes
2 parents 6510b26 + 76f5a07 commit 3c59b1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

database/factories/UserFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Database\Factories;
44

55
use Illuminate\Database\Eloquent\Factories\Factory;
6+
use Illuminate\Support\Facades\Hash;
67
use Illuminate\Support\Str;
78

89
/**
@@ -26,7 +27,7 @@ public function definition(): array
2627
'name' => fake()->name(),
2728
'email' => fake()->unique()->safeEmail(),
2829
'email_verified_at' => now(),
29-
'password' => static::$password ??= 'password',
30+
'password' => static::$password ??= Hash::make('password'),
3031
'remember_token' => Str::random(10),
3132
'two_factor_secret' => Str::random(10),
3233
'two_factor_recovery_codes' => Str::random(10),

0 commit comments

Comments
 (0)