From 85c7a3e286627ef7a5ff3890065f78221ea26bb8 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 16 Feb 2026 11:50:24 +0530 Subject: [PATCH] Added line_id and line_capacity in item model file --- app/Models/Item.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Models/Item.php b/app/Models/Item.php index 7477b2a..821795d 100644 --- a/app/Models/Item.php +++ b/app/Models/Item.php @@ -12,11 +12,13 @@ class Item extends Model protected $fillable = [ 'plant_id', + 'line_id', 'category', 'code', 'description', 'hourly_quantity', 'uom', + 'line_capacity', ]; public function plant(): BelongsTo @@ -24,6 +26,11 @@ class Item extends Model return $this->belongsTo(Plant::class); } + public function line(): BelongsTo + { + return $this->belongsTo(Line::class); + } + public function stickerMasters() { return $this->hasMany(StickerMaster::class, 'item_id', 'id');