belongsTo(Domain::class); } public function scopeForServer(Builder $q): Builder { return $q->whereHas('domain', fn($d) => $d->where('is_server', true)); } // Fertige Ausgabe-Zeile public function getDnsStringAttribute(): string { return "{$this->service}.{$this->host}. IN TLSA {$this->usage} {$this->selector} {$this->matching} {$this->hash}"; } }