*/ class TerminationRequestFactory extends Factory { /** * @return array */ public function definition(): array { return [ 'kind' => 'ordentlich', 'reason' => null, 'name' => fake()->name(), 'email' => fake()->safeEmail(), 'contract_reference' => null, 'terminate_at' => null, 'host' => 'pressekonto.test', 'requester_ip' => fake()->ipv4(), 'status' => 'open', 'resolved_at' => null, ]; } public function extraordinary(): static { return $this->state(fn (): array => [ 'kind' => 'ausserordentlich', 'reason' => fake()->sentence(), ]); } public function resolved(): static { return $this->state(fn (): array => [ 'status' => 'resolved', 'resolved_at' => now(), ]); } }