From a273ab65ed27bd39ab31d8a2951019d2aa4bbfba Mon Sep 17 00:00:00 2001 From: Romain Bonhomme Date: Fri, 13 Nov 2020 18:41:09 +0100 Subject: [PATCH] FIX envoi des mail preuve de gain --- app/Http/Controllers/WinningProofController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/WinningProofController.php b/app/Http/Controllers/WinningProofController.php index b1518dd..9913abd 100644 --- a/app/Http/Controllers/WinningProofController.php +++ b/app/Http/Controllers/WinningProofController.php @@ -83,7 +83,7 @@ class WinningProofController extends Controller $settings = Settings::find(1); $mails = json_decode($settings->notification_emails); foreach ($mails as $mail) { - Mail::to($mail)->send(new WinningProof($stickerPath, $ticketPath, $barcodePath, $participation, $user, $settings)); + Mail::to($mail->email)->send(new WinningProof($stickerPath, $ticketPath, $barcodePath, $participation, $user, $settings)); } return view('front.basic.replay');