From 531c627e723a9c8c2e4264f4fae59b20852b23e7 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 29 May 2026 20:37:28 +0530 Subject: [PATCH] Added leakTestReadings hasMany relationship on Plant model file --- app/Models/Plant.php | 6 ++++++ 1 file changed, 6 insertions(+) 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');