mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-22 07:54:11 -05:00
Use better description for the contact controller mail comment
This commit is contained in:
parent
c7e93038c2
commit
be7331fe20
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class ContactController extends Controller {
|
||||||
$contact->message = $message;
|
$contact->message = $message;
|
||||||
$contact->save();
|
$contact->save();
|
||||||
|
|
||||||
// Send the email if this is the production environment
|
// Send the email if the MAIL_SENDTO variable is set
|
||||||
if (env('MAIL_SENDTO') != null) {
|
if (env('MAIL_SENDTO') != null) {
|
||||||
Mail::send('email.contact', [ 'contact' => $contact ], function ($mail) use ($contact) {
|
Mail::send('email.contact', [ 'contact' => $contact ], function ($mail) use ($contact) {
|
||||||
$mail->from(env('MAIL_ADDRESS'), env('SITE_NAME'))
|
$mail->from(env('MAIL_ADDRESS'), env('SITE_NAME'))
|
||||||
|
|
Loading…
Reference in a new issue