Commit af64021da00100ecc79df8a9a86a3008d46864e7
1 parent
3dddd00f35
Exists in
master
коммит в субботу 1
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 | } |