diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index 77e8f60..22f32fe 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -23,8 +23,8 @@ class PagesController extends Controller public function form_feedback(RequestSendAdmin $request){ $all = $request->all(); - - Mail::to(env('EMAIL_ADMIN'))->send(new MailAdminy($all)); + // Mail::to(env('EMAIL_ADMIN'))->send(new MailAdminy($all)); + Mail::to(config('mail.emailAdmin'))->send(new MailAdminy($all)); return redirect()->back()->with('Сообщение было успешно отправлено и будет обработано'); } diff --git a/config/mail.php b/config/mail.php index 534395a..95911a2 100644 --- a/config/mail.php +++ b/config/mail.php @@ -115,4 +115,5 @@ return [ ], ], + 'emailAdmin' => env('EMAIL_ADMIN', 'info1@rekamore.su'), ];