mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 14:06:15 +00:00
2.x - firewall/metrics/services/cronjobs
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user