*/ class HostFactory extends Factory { protected $model = Host::class; public function definition(): array { return [ 'name' => 'pve-test-'.$this->faker->unique()->numberBetween(1, 99999), 'datacenter' => 'fsn', 'public_ip' => $this->faker->unique()->ipv4(), 'status' => 'pending', ]; } public function active(): static { return $this->state(fn () => [ 'status' => 'active', 'wg_ip' => '10.66.0.'.$this->faker->numberBetween(2, 250), 'total_gb' => 1000, 'total_ram_mb' => 65536, 'cpu_cores' => 16, 'cpu_weight' => 16, ]); } }