fix: show real storage name on services

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

No files matched your search

+7 -4
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