1
0
forked from poc/pds

Added leakTestReadings hasMany relationship on Plant model file

This commit is contained in:
dhanabalan
2026-05-29 20:37:28 +05:30
parent 17030f2c7f
commit 531c627e72

View File

@@ -168,6 +168,12 @@ class Plant extends Model
{
return $this->hasMany(VehicleEntry::class, 'plant_id', 'id');
}
public function leakTestReadings()
{
return $this->hasMany(LeakTestReading::class, 'plant_id', 'id');
}
public function asrsItemValidations()
{
return $this->hasMany(AsrsItemValidation::class, 'plant_id', 'id');