Commit 24b5f80e870acbccbdc288bf69c042b7dc2ad0c8

Authored by Андрей Ларионов
1 parent c32d1a96ec

Результат отправки почты

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 }