#27 - separate fields for name and surname

This commit is contained in:
Adrian Hopek
2022-01-24 12:06:36 +01:00
parent e147d24365
commit 816af23ce4
17 changed files with 125 additions and 48 deletions

View File

@@ -13,7 +13,8 @@ class UserFactory extends Factory
public function definition(): array
{
return [
"name" => "{$this->faker->firstName} {$this->faker->lastName}",
"first_name" => $this->faker->firstName(),
"last_name" => $this->faker->lastName(),
"email" => $this->faker->unique()->safeEmail(),
"employment_form" => $this->faker->randomElement(EmploymentForm::cases()),
"employment_date" => $this->faker->dateTimeBetween("2020-10-27"),