mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
Migrate to HTMX (#114)
Dropped Livewire Added HTMX Added Blade code lint Drop Mysql and Redis Migrate to SQLite
This commit is contained in:
@ -24,7 +24,19 @@ public function create(Server $server, array $input): FirewallRule
|
||||
'status' => FirewallRuleStatus::CREATING,
|
||||
]);
|
||||
$rule->save();
|
||||
$rule->addToServer();
|
||||
|
||||
$server->firewall()
|
||||
->handler()
|
||||
->addRule(
|
||||
$rule->type,
|
||||
$rule->real_protocol,
|
||||
$rule->port,
|
||||
$rule->source,
|
||||
$rule->mask
|
||||
);
|
||||
|
||||
$rule->status = FirewallRuleStatus::READY;
|
||||
$rule->save();
|
||||
|
||||
return $rule;
|
||||
}
|
||||
@ -56,6 +68,6 @@ private function validate(Server $server, array $input): void
|
||||
'mask' => [
|
||||
'numeric',
|
||||
],
|
||||
])->validateWithBag('createRule');
|
||||
])->validate();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user