1
0
forked from poc/pds

Add relationships for equipment masters in Machine and Plant models

This commit is contained in:
dhanabalan
2025-09-21 15:46:01 +05:30
parent 2e7c37c6f1
commit fad3cf4ed6
3 changed files with 12 additions and 0 deletions

View File

@@ -37,4 +37,10 @@ class Machine extends Model
{
return $this->hasMany(TestingPanelReading::class);
}
public function equipmentMasters()
{
return $this->hasMany(EquipmentMaster::class, 'machine_id', 'id');
}
}