mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 10:51:36 +00:00
24 lines
518 B
PHP
24 lines
518 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\FirewallRule;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class FirewallRuleFactory extends Factory
|
|
{
|
|
protected $model = FirewallRule::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'type' => 'allow',
|
|
'protocol' => 'tcp',
|
|
'port' => $this->faker->numberBetween(1, 65535),
|
|
'source' => $this->faker->ipv4(),
|
|
'mask' => 24,
|
|
'note' => 'test',
|
|
];
|
|
}
|
|
}
|