Files
einundzwanzig-verein/database/factories/ElectionFactory.php
HolgerHatGarKeineNode 7a992cec3f - Refactor edit.blade.php to handle admin-specific fields (accepted and sats_paid) through conditional logic.
- 📦 Upgrade Laravel framework, Livewire, and dependencies to ensure compatibility with version `13.1.1`.
2026-03-23 17:50:17 +00:00

27 lines
527 B
PHP

<?php
namespace Database\Factories;
use App\Models\Election;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<Election>
*/
class ElectionFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'year' => $this->faker->year(),
'candidates' => [],
'end_time' => $this->faker->dateTimeBetween('now', '+1 year'),
];
}
}