From aa09e90107cb15581d7a994ad6c6b90d23f131aa Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 2 Apr 2026 12:15:53 +0530 Subject: [PATCH] Added motorTestingMasters hasMany relation on model file --- app/Models/Plant.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 5fad1f9..99dcb01 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -63,6 +63,11 @@ class Plant extends Model return $this->hasMany(QualityValidation::class, 'plant_id', 'id'); } + public function motorTestingMasters() + { + return $this->hasMany(MotorTestingMaster::class, 'plant_id', 'id'); + } + public function testingPanelReadings() { return $this->hasMany(TestingPanelReading::class, 'plant_id', 'id');