This commit is contained in:
Saeed Vaziry
2023-07-02 12:47:50 +02:00
commit 5c72f12490
825 changed files with 41659 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<?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',
];
}
}