From c1ef611c9a7f4803d4510a7059606b4a860ab860 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 29 Apr 2026 16:33:32 +0530 Subject: [PATCH] Added has many relationship for WeightValidation --- app/Models/Plant.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 4b66523..bff380a 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -48,6 +48,11 @@ class Plant extends Model return $this->hasMany(StickerMaster::class, 'plant_id', 'id'); } + public function weightValidations(): HasMany + { + return $this->hasMany(WeightValidation::class, 'plant_id', 'id'); + } + public function invoiceValidations() { return $this->hasMany(InvoiceValidation::class, 'plant_id', 'id');