Commit 24b5f80e870acbccbdc288bf69c042b7dc2ad0c8
1 parent
c32d1a96ec
Exists in
master
and in
1 other branch
Результат отправки почты
Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff
app/Http/Controllers/PagesController.php
... | ... | @@ -23,9 +23,7 @@ class PagesController extends Controller |
23 | 23 | public function form_feedback(RequestSendAdmin $request){ |
24 | 24 | $all = $request->all(); |
25 | 25 | |
26 | - foreach ([$request->get('email')] as $recipient) { | |
27 | - Mail::to($recipient)->send(new MailAdminy($all)); | |
28 | - } | |
26 | + Mail::to(env('EMAIL_ADMIN'))->send(new MailAdminy($all)); | |
29 | 27 | |
30 | 28 | return redirect()->back()->with('Сообщение было успешно отправлено и будет обработано'); |
31 | 29 | } |