mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 19:26:38 -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->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) {
|
||||
Mail::send('email.contact', [ 'contact' => $contact ], function ($mail) use ($contact) {
|
||||
$mail->from(env('MAIL_ADDRESS'), env('SITE_NAME'))
|
||||
|
|
Loading…
Reference in a new issue