tag1)) { $tags[] = ['text' => $this->tag1, 'color' => $this->tag1color ?? '#3498db']; } if (!empty($this->tag2)) { $tags[] = ['text' => $this->tag2, 'color' => $this->tag2color ?? '#3498db']; } if (!empty($this->tag3)) { $tags[] = ['text' => $this->tag3, 'color' => $this->tag3color ?? '#3498db']; } return $tags; } public function node() { return $this->belongsTo(Node::class); } public function os() { return $this->belongsTo(OS::class); } public function ipAddresses() { return $this->hasMany(IPAddress::class); } public function service() { return $this->belongsTo(Service::class); } public function primaryIpv4() { return $this->belongsTo(IPAddress::class, 'primary_ipv4'); } public function primaryIpv6() { return $this->belongsTo(IPAddress::class, 'primary_ipv6'); } public function statistics() { return $this->hasMany(ServerStatistics::class); } }