*/ class WithdrawalRequestFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'name' => fake()->name(), 'email' => fake()->safeEmail(), 'order_reference' => fake()->optional()->bothify('STR-2026-####'), 'host' => 'pressekonto.test', 'requester_ip' => fake()->ipv4(), 'status' => 'open', ]; } public function resolved(): static { return $this->state(fn (): array => [ 'status' => 'resolved', 'resolved_at' => now(), ]); } }