mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
init
This commit is contained in:
23
database/factories/FirewallRuleFactory.php
Normal file
23
database/factories/FirewallRuleFactory.php
Normal 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',
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user