FIX envoi des mail preuve de gain

This commit is contained in:
Romain Bonhomme 2020-11-13 18:41:09 +01:00
parent 630ddd6f54
commit a273ab65ed

View file

@ -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');