From 181c0a2e4c530f72f539156e311b8f358e541788 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 3 Oct 2025 16:03:45 +0530 Subject: [PATCH] Add SerialValidation model with fillable attributes and relationships --- app/Models/SerialValidation.php | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 app/Models/SerialValidation.php diff --git a/app/Models/SerialValidation.php b/app/Models/SerialValidation.php new file mode 100644 index 0000000..258fadf --- /dev/null +++ b/app/Models/SerialValidation.php @@ -0,0 +1,47 @@ +belongsTo(Plant::class); + } + + public function stickerMaster(): BelongsTo + { + return $this->belongsTo(StickerMaster::class); + } + + public function stickerMasterRelation() + { + return $this->belongsTo(StickerMaster::class, 'sticker_master_id'); + } +}