Skip to content

Commit

Permalink
Merge pull request #613 from manageruz/develop
Browse files Browse the repository at this point in the history
Fix Faker's depricated email and userName properties
  • Loading branch information
manageruz committed Jan 11, 2024
2 parents 564da94 + 2324123 commit ca1335a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/UserModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ protected function addToGroup($data)
public function fake(Generator &$faker): User
{
return new User([
'email' => $faker->email,
'username' => $faker->userName,
'email' => $faker->email(),
'username' => $faker->userName(),
'password' => bin2hex(random_bytes(16)),
]);
}
Expand Down

0 comments on commit ca1335a

Please sign in to comment.