From 593a79ff90e4f7b52a93c5fc5620b39be85f3f17 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 10 Sep 2026 17:30:25 +0530 Subject: [PATCH] Added coil packingrelation in item model file --- app/Models/Item.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Models/Item.php b/app/Models/Item.php index 1b0dc5c..e792553 100644 --- a/app/Models/Item.php +++ b/app/Models/Item.php @@ -17,6 +17,7 @@ class Item extends Model 'description', 'hourly_quantity', 'uom', + // 'type', ]; public function plant() @@ -118,4 +119,9 @@ class Item extends Model { return $this->hasMany(PanelGrMaster::class, 'item_id', 'id'); } + + public function coilPacking() + { + return $this->hasMany(CoilPacking::class, 'item_id', 'id'); + } }