update
This commit is contained in:
@@ -14,11 +14,17 @@ class ModuleDatacenter extends Model
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'datacenter_id',
|
||||
'vcenter_id'
|
||||
'vcenter_id',
|
||||
'status',
|
||||
];
|
||||
|
||||
public function vCenter()
|
||||
{
|
||||
return $this->belongsTo(\App\Models\vCenter::class,'vcenter_id','id');
|
||||
}
|
||||
|
||||
public function hosts()
|
||||
{
|
||||
return $this->hasMany(\App\Models\ModuleHost::class, 'module_datacenter_id', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user