expire_at ?: $this->service->next_invoice; } /** * The name of the domain with its TLD * * @return string * // @todo */ public function getServiceNameAttribute(): string { return strtoupper(sprintf('%s.%s',$this->domain_name,$this->tld->name)); } public function inContract(): bool { return $this->expire_at && $this->expire_at->isFuture(); } /* RELATIONS */ public function tld() { return $this->belongsTo(TLD::class); } }