Skip to content

Commit 60b14a1

Browse files
committed
disable testing e-mail address by default
1 parent 6a31967 commit 60b14a1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,6 @@ If you wish to encrypt your e-mails, please enable the `encrypt` option in the c
144144

145145
### Testing Address
146146

147-
If you wish to send e-mails to a test address but don't necessarily want to use a service like mailtrap, please take a look at the `testing` configuration. This is turned on by default.
147+
If you wish to send e-mails to a test address but don't necessarily want to use a service like mailtrap, please take a look at the `testing` configuration. This is turned off by default.
148148

149149
During the creation of an e-mail, the recipient will be replaced by the test e-mail. This is useful for local development or testing on a staging server.

config/laravel-database-emails.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
'email' => 'test@email.com',
4949

5050
'enabled' => function () {
51-
return app()->environment('local', 'staging');
51+
return false;
52+
// ...or...
53+
// return app()->environment('local', 'staging');
5254
}
5355

5456
],

0 commit comments

Comments
 (0)