From e911d69a89757a3ea191b633ca425df2567a4e25 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 26 Oct 2026 14:29:24 +0530 Subject: [PATCH] Added production characteristic relation in plant 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 fb4566e..3bd687b 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -127,4 +127,9 @@ class Plant extends Model { return $this->hasMany(ProductCharacteristicsMaster::class, 'plant_id', 'id'); } + + public function productionCharacteristics() + { + return $this->hasMany(ProductionCharacteristic::class, 'plant_id', 'id'); + } }