Mager updated

This commit is contained in:
Simon Pocrnjič
2025-09-27 17:45:55 +02:00
parent d17e34941b
commit 7227c888d4
74 changed files with 6339 additions and 342 deletions
+9 -1
View File
@@ -17,7 +17,15 @@ class PersonFactory extends Factory
public function definition(): array
{
return [
//
'first_name' => $this->faker->firstName(),
'last_name' => $this->faker->lastName(),
'full_name' => fn(array $attrs) => trim(($attrs['first_name'] ?? '').' '.($attrs['last_name'] ?? '')),
'gender' => $this->faker->randomElement(['m','w']),
'birthday' => $this->faker->optional()->date(),
'tax_number' => $this->faker->optional()->bothify('########'),
'social_security_number' => $this->faker->optional()->bothify('#########'),
'description' => $this->faker->optional()->sentence(),
// group_id/type_id are required; keep null here and let tests/seeds assign or rely on defaults in code paths that use factories
];
}
}