belongsTo(\App\Models\vCenter::class,'vcenter_id','id'); } public function hosts() { return $this->hasMany(\App\Models\ModuleHost::class, 'module_datacenter_id', 'id'); } }