Kimi chinh sua

This commit is contained in:
2026-04-24 08:58:53 +00:00
parent 91ff4a5e4d
commit 86216ef872
43 changed files with 2868 additions and 597 deletions

View File

@@ -11,17 +11,20 @@ class CustomerFactory extends Factory
public function definition(): array
{
$street = $this->faker->streetAddress();
$ward = 'Phường ' . $this->faker->numberBetween(1, 15);
$district = 'Quận ' . $this->faker->numberBetween(1, 12);
$city = $this->faker->city();
$fullAddress = "{$street}, {$ward}, {$district}, {$city}";
return [
'full_name' => $this->faker->name(),
'cmnd_cccd' => $this->faker->unique()->numerify('0##########'),
'phone' => $this->faker->phoneNumber(),
'email' => $this->faker->unique()->safeEmail(),
'address' => [
'street' => $this->faker->streetAddress(),
'ward' => 'Phường ' . $this->faker->numberBetween(1, 15),
'district' => 'Quận ' . $this->faker->numberBetween(1, 12),
'city' => $this->faker->city(),
],
'type' => 'INDIVIDUAL',
'permanent_address' => $fullAddress,
'contact_address' => $fullAddress,
'dob' => $this->faker->date(),
];
}