We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 523b37f + 71b4023 commit 08747a4Copy full SHA for 08747a4
database/factories/UserFactory.php
@@ -3,6 +3,7 @@
3
namespace Database\Factories;
4
5
use Illuminate\Database\Eloquent\Factories\Factory;
6
+use Illuminate\Support\Facades\Hash;
7
use Illuminate\Support\Str;
8
9
/**
@@ -26,7 +27,7 @@ public function definition(): array
26
27
'name' => fake()->name(),
28
'email' => fake()->unique()->safeEmail(),
29
'email_verified_at' => now(),
- 'password' => static::$password ??= 'password',
30
+ 'password' => static::$password ??= Hash::make('password'),
31
'remember_token' => Str::random(10),
32
'two_factor_secret' => Str::random(10),
33
'two_factor_recovery_codes' => Str::random(10),
0 commit comments