Skip to content

Commit 9f47e5d

Browse files
authored
Add unverified state to UserFactory (#679)
1 parent e3f64e3 commit 9f47e5d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

database/factories/UserFactory.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ public function definition()
3232
];
3333
}
3434

35+
/**
36+
* Define the model's unverified state.
37+
*
38+
* @return \Illuminate\Database\Eloquent\Factories\Factory
39+
*/
40+
public function unverified()
41+
{
42+
return $this->state(function (array $attributes) {
43+
return [
44+
'email_verified_at' => null,
45+
];
46+
});
47+
}
48+
3549
/**
3650
* Indicate that the user should have a personal team.
3751
*

0 commit comments

Comments
 (0)