testing php storm code cleanup and styling

This commit is contained in:
Andras Bacsai committed 2023-08-08 11:51:36 +02:00
1 parent a8ee779b31
commit f2228cec7b
368 files changed
+23834 -2623

No files matched your search

+4
View File
@@ -9,18 +9,22 @@ class StandaloneDocker extends BaseModel
'network',
'server_id',
];
public function applications()
{
return $this->morphMany(Application::class, 'destination');
}
public function postgresqls()
{
return $this->morphMany(StandalonePostgresql::class, 'destination');
}
public function server()
{
return $this->belongsTo(Server::class);
}
public function attachedTo()
{
return $this->applications->count() > 0 || $this->databases->count() > 0;