2.x - firewall/metrics/services/cronjobs

This commit is contained in:
Saeed Vaziry
2024-10-01 19:09:38 +02:00
parent 2e9620409b
commit 906ddc38de
58 changed files with 1625 additions and 631 deletions

View File

@ -21,6 +21,7 @@
* @property string $status
* @property bool $is_default
* @property Server $server
* @property string $image_url
*/
class Service extends AbstractModel
{
@ -116,4 +117,9 @@ public function disable(): void
{
$this->unit && app(Manage::class)->disable($this);
}
public function getImageUrlAttribute(): string
{
return url('/static/images/'.$this->name.'.svg');
}
}