Skip to content

Commit c958a27

Browse files
committed
update README.md
1 parent afcd965 commit c958a27

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ return [
3939
'recipient' => '[email protected]',
4040
'subject' => 'Une erreur est survenue - ' . env('APP_NAME'),
4141
],
42+
43+
'disabledOn' => [
44+
// 'local',
45+
],
4246
];
4347
```
4448

@@ -52,6 +56,15 @@ customize the following options:
5256
`'subject'`: Define the subject line for error notification emails. You can use placeholders like `env('APP_NAME')` to
5357
dynamically include your application's name.
5458

59+
`'disabledOn'`: You can specify a list of environments (based on `APP_ENV`) where the Error Mailer will be disabled.
60+
For example, if you want to disable the mailer in the local environment, add 'local' to the array:
61+
62+
```php
63+
'disabledOn' => [
64+
'local',
65+
],
66+
```
67+
5568
<hr/>
5669

5770
> ⚠️ **IMPORTANT ! Make sure to configure a mail server in your .env file :**

0 commit comments

Comments
 (0)