From 24b5f80e870acbccbdc288bf69c042b7dc2ad0c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Sat, 27 Apr 2024 16:45:53 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B7=D1=83=D0=BB=D1=8C=D1=82=D0=B0=D1?= =?UTF-8?q?=82=20=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF=D0?= =?UTF-8?q?=BE=D1=87=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/PagesController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index f9b6ecf..2a5ae74 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -23,9 +23,7 @@ class PagesController extends Controller public function form_feedback(RequestSendAdmin $request){ $all = $request->all(); - foreach ([$request->get('email')] as $recipient) { - Mail::to($recipient)->send(new MailAdminy($all)); - } + Mail::to(env('EMAIL_ADMIN'))->send(new MailAdminy($all)); return redirect()->back()->with('Сообщение было успешно отправлено и будет обработано'); } -- 1.7.10.4