changes to management
This commit is contained in:
@@ -36,5 +36,12 @@ class Building extends BaseModel
|
||||
parent::boot();
|
||||
}
|
||||
|
||||
public function organization(){
|
||||
return $this->belongsTo(Organization::class, 'organization_id', 'id');
|
||||
}
|
||||
|
||||
public function rooms(){
|
||||
return $this->hasMany(Room::class, 'building_id', 'id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user