From 21bc0cf59eff205c52efb40e4221410f1b8d6f94 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 24 Aug 2026 10:32:06 +0530 Subject: [PATCH] Added pump testing entry model file for hasMany relations --- app/Models/Plant.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 91b3dd6..7b3d18e 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -89,10 +89,10 @@ class Plant extends Model return $this->hasMany(PumpTestingMaster::class, 'plant_id', 'id'); } - // public function pumpTestingEntries() - // { - // return $this->hasMany(PumpTestingEntry::class, 'plant_id', 'id'); - // } + public function pumpTestingEntries() + { + return $this->hasMany(PumpTestingEntry::class, 'plant_id', 'id'); + } public function guardNames() {