From eda4648741b2b314f660b99baef1cf2bc45757f8 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sun, 20 Sep 2026 11:05:50 +0530 Subject: [PATCH] Added process order 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 bc2b289..493df50 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -107,4 +107,9 @@ class Plant extends Model { return $this->hasMany(ItemCharacteristic::class, 'plant_id', 'id'); } + + public function processOrders() + { + return $this->hasMany(ProcessOrder::class, 'plant_id', 'id'); + } }