fix: show real storage name on services

This commit is contained in:
Andras Bacsai
2023-09-25 17:14:19 +02:00
parent 0b11093d18
commit ee20c3339e
4 changed files with 15 additions and 6 deletions

View File

@@ -12,16 +12,19 @@ class LocalPersistentVolume extends Model
public function application()
{
return $this->morphTo();
return $this->morphTo('resource');
}
public function service()
{
return $this->morphTo();
return $this->morphTo('resource');
}
public function database()
{
return $this->morphTo('resource');
}
public function standalone_postgresql()
{
return $this->morphTo();
return $this->morphTo('resource');
}
protected function name(): Attribute