From 39d65afcfe0509b1fb6851c9e248f20db598328e Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 18 Aug 2026 12:44:25 +0530 Subject: [PATCH] Added machine_id column in alert mail model file --- app/Models/AlertMailRule.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Models/AlertMailRule.php b/app/Models/AlertMailRule.php index be6c00a..9e0212c 100644 --- a/app/Models/AlertMailRule.php +++ b/app/Models/AlertMailRule.php @@ -18,6 +18,7 @@ class AlertMailRule extends Model 'email', 'cc_emails', 'schedule_type', + 'machine_id', 'created_at', 'updated_at', 'created_by', @@ -29,4 +30,10 @@ class AlertMailRule extends Model return $this->belongsTo(InvoiceMaster::class); //return $this->belongsTo(InvoiceMaster::class, 'invoice_master_id'); } + + public function machine(): BelongsTo + { + return $this->belongsTo(Machine::class); + //return $this->belongsTo(InvoiceMaster::class, 'invoice_master_id'); + } }