crud room, incident type, catalog, and sample-containers
This commit is contained in:
@@ -26,7 +26,7 @@ class Room extends BaseModel
|
||||
|
||||
|
||||
protected $fillable = [
|
||||
'code', 'name_en','name_kh', 'description', 'organization_id',
|
||||
'code', 'name_en','name_kh', 'description', 'biosafety_level_concept_id', 'building_id', 'temperature_range', 'organization_id',
|
||||
BaseModel::CREATED_BY_FIELD, BaseModel::UPDATED_AT_FIELD, BaseModel::UPDATED_BY_FIELD,
|
||||
BaseModel::DELETED_AT_FIELD, BaseModel::DELETED_BY_FIELD, BaseModel::RECORD_STATUS_FIELD
|
||||
];
|
||||
@@ -36,5 +36,13 @@ class Room extends BaseModel
|
||||
parent::boot();
|
||||
}
|
||||
|
||||
public function building(){
|
||||
return $this->belongsTo(Building::class, 'building_id', 'id');
|
||||
}
|
||||
|
||||
public function bsl(){
|
||||
return $this->belongsTo(Concept::class, 'biosafety_level_concept_id', 'id');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user