*/ class FirewallRuleFactory extends Factory { protected $model = FirewallRule::class; public function definition(): array { return [ 'name' => $this->faker->word, 'type' => 'allow', 'protocol' => 'tcp', 'port' => $this->faker->numberBetween(1, 65535), 'source' => $this->faker->ipv4(), 'mask' => 24, 'note' => 'test', ]; } }