Added machine relation in model file #225

Merged
jothi merged 1 commits from ranjith-dev into master 2026-09-20 07:20:31 +00:00

View File

@@ -117,4 +117,9 @@ class Plant extends Model
{
return $this->hasMany(CharacteristicValue::class, 'plant_id', 'id');
}
public function machines()
{
return $this->hasMany(Machine::class, 'plant_id', 'id');
}
}