*/ class SemesterFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'semester' => $this->faker->randomElement(['Ganjil', 'Genap']), 'tahun_ajaran' => $this->faker->year() . '/' . ($this->faker->year() + 1), 'is_active' => $this->faker->boolean(), ]; } }