This commit is contained in:
Saufi
2026-06-03 08:51:22 +08:00
commit a14d43fe34
347 changed files with 38197 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace Database\Factories;
use App\Models\Dun;
use App\Models\Election;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<Dun>
*/
class DunFactory extends Factory
{
/**
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'election_id' => Election::factory(),
'code' => strtoupper(fake()->unique()->bothify('N##')),
'name' => fake()->city(),
];
}
}