Add relationships for equipment masters in Machine and Plant models
This commit is contained in:
@@ -37,4 +37,10 @@ class Machine extends Model
|
||||
{
|
||||
return $this->hasMany(TestingPanelReading::class);
|
||||
}
|
||||
|
||||
public function equipmentMasters()
|
||||
{
|
||||
return $this->hasMany(EquipmentMaster::class, 'machine_id', 'id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user