Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

feat: dockerCleanupExecutions relationship

peaklabs-dev222af12ef020
diff --git a/app/Models/Server.php b/app/Models/Server.php
index 2867f95cb7..f3edd82fb6 100644
--- a/app/Models/Server.php
+++ b/app/Models/Server.php
@@ -199,6 +199,11 @@ class Server extends BaseModel
return $this->hasOne(ServerSetting::class);
}
+ public function dockerCleanupExecutions()
+ {
+ return $this->hasMany(DockerCleanupExecution::class);
+ }
+
public function proxySet()
{
return $this->proxyType() && $this->proxyType() !== 'NONE' && $this->isFunctional() && ! $this->isSwarmWorker() && ! $this->settings->is_build_server;