From 9d12234d3458542b62715f2d08390460dec5e444 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 18 Aug 2026 14:21:03 +0530 Subject: [PATCH 1/2] Added panelBoxValidation relationship in plant model file --- app/Models/Plant.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 5a5e9aa..82dbf0f 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -84,6 +84,16 @@ class Plant extends Model return $this->hasMany(TestingPanelReading::class, 'plant_id', 'id'); } + // public function pumpTestingMasters() + // { + // return $this->hasMany(PumpTestingMaster::class, 'plant_id', 'id'); + // } + + // public function pumpTestingEntries() + // { + // return $this->hasMany(PumpTestingEntry::class, 'plant_id', 'id'); + // } + public function guardNames() { return $this->hasMany(GuardName::class, 'plant_id', 'id'); @@ -149,6 +159,11 @@ class Plant extends Model return $this->hasMany(ClassCharacteristic::class, 'plant_id', 'id'); } + // public function ModelMasters() + // { + // return $this->hasMany(ModelMaster::class, 'plant_id', 'id'); + // } + // public function rejectReasons() // { // return $this->hasMany(RejectReason::class, 'plant_id', 'id'); @@ -198,4 +213,11 @@ class Plant extends Model { return $this->hasMany(CharacteristicApproverMaster::class, 'plant_id', 'id'); } + + public function panelBoxValidations() + { + return $this->hasMany(PanelBoxValidation::class, 'plant_id', 'id'); + } + + } -- 2.49.1 From 35ca404a69c52083d482bf8400f9608f6b95d392 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 18 Aug 2026 14:27:44 +0530 Subject: [PATCH 2/2] Added panel box validation relationship in line model file --- app/Models/Line.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Line.php b/app/Models/Line.php index d4d9e2e..79a81a4 100644 --- a/app/Models/Line.php +++ b/app/Models/Line.php @@ -185,4 +185,9 @@ class Line extends Model // { // return $this->hasMany(RejectReason::class, 'line_id', 'id'); // } + + public function panelBoxValidations() + { + return $this->hasMany(PanelBoxValidation::class); + } } -- 2.49.1