belongsToMany(ProductDomain::class,$this->table,'id','id','id',$this->table.'_id'); } public function getBillingIntervalAttribute(): int { return 4; // Yearly } public function getNameAttribute(): string { return sprintf('%s: %s',$this->product_id,$this->tld->name); } /* RELATIONS */ public function tld() { return $this->belongsTo(TLD::class); } }