From 170b784a9bfc23573bc977b0545ee378a138617f Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 10 Jul 2025 15:12:01 +0530 Subject: [PATCH] Added plant in model file --- app/Models/AlertMailRule.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Models/AlertMailRule.php b/app/Models/AlertMailRule.php index 66aac7766..b64272fbd 100644 --- a/app/Models/AlertMailRule.php +++ b/app/Models/AlertMailRule.php @@ -12,6 +12,7 @@ class AlertMailRule extends Model protected $fillable = [ 'module', + 'plant', 'rule_name', 'email', 'schedule_type', @@ -21,8 +22,8 @@ class AlertMailRule extends Model 'updated_by', ]; - public function plant(): BelongsTo - { - return $this->belongsTo(Plant::class); - } + // public function plant(): BelongsTo + // { + // return $this->belongsTo(Plant::class); + // } }