diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 0eab322..ee845ff 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -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');