From 773948ec7532c06f87a77e6a0aaf4a6680f07dc5 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 29 May 2026 13:10:01 +0530 Subject: [PATCH] Updated belongsTo relationship against Line --- app/Models/Item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Item.php b/app/Models/Item.php index 755080c..8a2090f 100644 --- a/app/Models/Item.php +++ b/app/Models/Item.php @@ -24,9 +24,9 @@ class Item extends Model return $this->belongsTo(Plant::class); } - public function item() + public function line() { - return $this->belongsTo(Item::class, 'item_id', 'id'); + return $this->belongsTo(Line::class, 'line_id', 'id'); } public function stickerMasters()