Init: Hoan thanh kien truc V3 va Filament UI

This commit is contained in:
2026-04-18 02:07:30 +00:00
commit 761b34916b
141 changed files with 15917 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace Database\Factories;
use App\Models\Customer;
use Illuminate\Database\Eloquent\Factories\Factory;
class CustomerFactory extends Factory
{
protected $model = Customer::class;
public function definition(): array
{
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(),
],
'dob' => $this->faker->date(),
];
}
}