mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
use short closure
This commit is contained in:
parent
c233957734
commit
7b17f5f326
@ -33,10 +33,8 @@ class UserFactory extends Factory
|
||||
*/
|
||||
public function unverified()
|
||||
{
|
||||
return $this->state(function (array $attributes) {
|
||||
return [
|
||||
'email_verified_at' => null,
|
||||
];
|
||||
});
|
||||
return $this->state(fn (array $attributes) => [
|
||||
'email_verified_at' => null,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user