From ab179d01281a5d79a8c2956b4c354a3da56144de Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sun, 20 Sep 2026 11:29:36 +0530 Subject: [PATCH] Added characteristic value 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 493df50..a28403b 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -112,4 +112,9 @@ class Plant extends Model { return $this->hasMany(ProcessOrder::class, 'plant_id', 'id'); } + + public function characteristicValues() + { + return $this->hasMany(CharacteristicValue::class, 'plant_id', 'id'); + } } -- 2.49.1