We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d7d2e35 + bb991d6 commit 2637560Copy full SHA for 2637560
1 file changed
src/Factories/UserFactory.php
@@ -13,22 +13,13 @@ public function definition(): array
13
return [
14
'name' => $this->faker->name,
15
'email' => $this->faker->unique()->safeEmail,
16
- 'password' => 'password',
+ 'password' => env('DEFAULT_USER_PASSWORD', 'password'),
17
'remember_token' => Str::random(10),
18
'status' => $this->faker->randomElement(UserStatuses::getKeys()),
19
'email_verified_at' => $this->faker->randomElement([now(), null]),
20
];
21
}
22
23
- public function suspended(): UserFactory
24
- {
25
- return $this->state(function (array $attributes) {
26
- return [
27
- 'account_status' => 'suspended',
28
- ];
29
- });
30
- }
31
-
32
public function unverified(): UserFactory
33
{
34
return $this->state(function (array $attributes) {
0 commit comments