User::factory(), 'user_staff_id' => User::factory(), 'ban_expire' => now()->addDays($this->faker->numberBetween(1, 365))->timestamp, 'type' => $this->faker->randomElement(['account', 'ip', 'machine']), 'reason' => $this->faker->sentence(), 'ip' => $this->faker->ipv4(), ]; } public function expired(): static { return $this->state(fn (array $attributes) => [ 'ban_expire' => now()->subDay()->timestamp, ]); } public function permanent(): static { return $this->state(fn (array $attributes) => [ 'ban_expire' => 0, ]); } }