diff --git a/app/Models/Server.php b/app/Models/Server.php index 938ed1126..4028109e2 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -365,8 +365,9 @@ public function destinations() { $standalone_docker = $this->hasMany(StandaloneDocker::class)->get(); $swarm_docker = $this->hasMany(SwarmDocker::class)->get(); - $asd = $this->belongsToMany(StandaloneDocker::class, 'additional_destinations')->withPivot('server_id')->get(); - return $standalone_docker->concat($swarm_docker)->concat($asd); + // $additional_dockers = $this->belongsToMany(StandaloneDocker::class, 'additional_destinations')->withPivot('server_id')->get(); + // return $standalone_docker->concat($swarm_docker)->concat($additional_dockers); + return $standalone_docker->concat($swarm_docker); } public function standaloneDockers()