From a471a43b1b5d53678fbefbe56000b3325c5f9d0c Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 28 Feb 2026 09:36:17 +0530 Subject: [PATCH] Updated hasManu relationship on Plant model --- app/Models/Plant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Plant.php b/app/Models/Plant.php index d0ca0d1..ce7cabc 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -90,7 +90,7 @@ class Plant extends Model public function processOrders() { - return $this->hasMany(ProcessOrder::class); + return $this->hasMany(ProcessOrder::class, 'plant_id', 'id'); } public function productCharacteristicsMasters()