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('Сообщение было успешно отправлено и будет обработано'); }