From d9aad26b8e50875513886a65f5737541388b9602 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 25 Feb 2015 15:31:45 +1030 Subject: [PATCH] Add mail settings to env config --- .env.example | 6 ++++++ config/mail.php | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 76b76ca..240fe06 100644 --- a/.env.example +++ b/.env.example @@ -9,3 +9,9 @@ DB_PASSWORD=root CACHE_DRIVER=file SESSION_DRIVER=file + +MAIL_DRIVER=smtp +MAIL_HOST=mailtrap.io +MAIL_PORT=2525 +MAIL_USERNAME=null +MAIL_PASSWORD=null diff --git a/config/mail.php b/config/mail.php index 6f9c954..fc45943 100644 --- a/config/mail.php +++ b/config/mail.php @@ -15,7 +15,7 @@ return [ | */ - 'driver' => 'smtp', + 'driver' => env('MAIL_DRIVER', 'smtp'), /* |-------------------------------------------------------------------------- @@ -28,7 +28,7 @@ return [ | */ - 'host' => 'smtp.mailgun.org', + 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), /* |-------------------------------------------------------------------------- @@ -41,7 +41,7 @@ return [ | */ - 'port' => 587, + 'port' => env('MAIL_PORT', 587), /* |-------------------------------------------------------------------------- @@ -80,7 +80,7 @@ return [ | */ - 'username' => null, + 'username' => env('MAIL_USERNAME'), /* |-------------------------------------------------------------------------- @@ -93,7 +93,7 @@ return [ | */ - 'password' => null, + 'password' => env('MAIL_PASSWORD'), /* |--------------------------------------------------------------------------