From f9c3ee08f0309c16da728597fc8fb179647a8a56 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 4 Sep 2026 15:55:12 +0530 Subject: [PATCH] corrected to email logic in panel check list --- app/Livewire/PanelCheckList.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Livewire/PanelCheckList.php b/app/Livewire/PanelCheckList.php index 5156838..6347bf3 100644 --- a/app/Livewire/PanelCheckList.php +++ b/app/Livewire/PanelCheckList.php @@ -400,7 +400,13 @@ public $records = []; if ($mailRule && !empty($mailRule->email)) { - $mail = Mail::to($mailRule->email); + // $mail = Mail::to($mailRule->email); + + $toEmails = array_filter( + array_map('trim', explode(',', $mailRule->email)) + ); + + $mail = Mail::to($toEmails); if (!empty($mailRule->cc_emails)) {