*/ class PusatMengundiFactory extends Factory { /** * @return array */ public function definition(): array { $dun = Dun::factory()->create(); return [ 'election_id' => $dun->election_id, 'dun_id' => $dun->id, 'public_uuid' => (string) Str::uuid(), 'code' => strtoupper(fake()->unique()->bothify('PM###')), 'name' => 'SK '.fake()->city(), 'address' => fake()->address(), 'registration_url' => null, 'qr_code_path' => null, ]; } }