Browse Source

A few tweaks to mail config.

Taylor Otwell 9 years ago
parent
commit
8e15c7f73e
2 changed files with 10 additions and 5 deletions
  1. 6 1
      .env.example
  2. 4 4
      config/mail.php

+ 6 - 1
.env.example

@@ -8,5 +8,10 @@ DB_USERNAME=homestead
 DB_PASSWORD=secret
 
 CACHE_DRIVER=file
-MAIL_DRIVER=smtp
 SESSION_DRIVER=file
+
+MAIL_DRIVER=smtp
+MAIL_HOST=mailtrap.io
+MAIL_PORT=2525
+MAIL_USERNAME=null
+MAIL_PASSWORD=null

+ 4 - 4
config/mail.php

@@ -28,7 +28,7 @@ return [
 	|
 	*/
 
-	'host' => env('SMTP_HOST', 'smtp.mailgun.org'),
+	'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
 
 	/*
 	|--------------------------------------------------------------------------
@@ -41,7 +41,7 @@ return [
 	|
 	*/
 
-	'port' => env('SMTP_PORT', 587),
+	'port' => env('MAIL_PORT', 587),
 
 	/*
 	|--------------------------------------------------------------------------
@@ -80,7 +80,7 @@ return [
 	|
 	*/
 
-	'username' => env('SMTP_USERNAME'),
+	'username' => env('MAIL_USERNAME'),
 
 	/*
 	|--------------------------------------------------------------------------
@@ -93,7 +93,7 @@ return [
 	|
 	*/
 
-	'password' => env('SMTP_PASSWORD'),
+	'password' => env('MAIL_PASSWORD'),
 
 	/*
 	|--------------------------------------------------------------------------