Merge branch 'develop' into trunk

This commit is contained in:
Olivier Legat 2022-01-05 16:49:04 +01:00
commit fc1450d9de
3 changed files with 6 additions and 3 deletions

View file

@ -33,7 +33,7 @@ class PostController extends Controller
'object' => $request->object,
'message' => $request->message
);
Mail::to('ldc@test.com')->send(new SendMail($data));
Mail::to(env('MAIL_FROM_ADDRESS', 'rhd@ldc.fr'))->send(new SendMail($data));
return redirect()->back()->withSuccess('Votre message à bien été envoyé !');
}
}

View file

@ -29,7 +29,7 @@ class SendMail extends Mailable
public function build()
{
return $this->from($this->data['mail'])
->subject($this->data['object'])
->subject(config('app.name') ."- Contact - ". $this->data['object'])
->with('data', $this->data)
->markdown('emails.send');
}

View file

@ -1,5 +1,8 @@
@component('mail::message')
# Mme/M. {{ $data['name'] }} {{ $data['firstname'] }}.
{{ $data['mail'] }}
# {{ $data['object'] }}
{{ $data['message'] }}
@endcomponent
@endcomponent