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'), /* |--------------------------------------------------------------------------