Skip to content

Commit f656d97

Browse files
committed
fix: Configuration keys
1 parent 086ddf2 commit f656d97

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Register the package with laravel in `config/app.php` under `providers` with the
130130
public function register(): void
131131
{
132132
$this->reportable(function (Throwable $e) {
133-
$enableEmailExceptions = config('exceptions.emailExceptionEnabled');
133+
$enableEmailExceptions = config('emailExceptionEnabled');
134134
135135
if ($enableEmailExceptions && $this->shouldReport($e)) {
136136
$this->sendEmail($e);

src/App/Mail/ExceptionOccurred.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ public function __construct($content)
2525
*/
2626
public function build(): Mailable
2727
{
28-
$emailsTo = str_getcsv(config('exceptions.emailExceptionsTo', ''));
29-
$ccEmails = str_getcsv(config('exceptions.emailExceptionCCto', ''));
30-
$bccEmails = str_getcsv(config('exceptions.emailExceptionBCCto', ''));
31-
$fromSender = config('exceptions.emailExceptionFrom', '');
32-
$subject = config('exceptions.emailExceptionSubject', '');
28+
$emailsTo = str_getcsv(config('emailExceptionsTo', ''));
29+
$ccEmails = str_getcsv(config('emailExceptionCCto', ''));
30+
$bccEmails = str_getcsv(config('emailExceptionBCCto', ''));
31+
$fromSender = config('emailExceptionFrom', '');
32+
$subject = config('emailExceptionSubject', '');
3333

3434
return $this->from($fromSender)
3535
->to($emailsTo)
3636
->cc($ccEmails)
3737
->bcc($bccEmails)
3838
->subject($subject)
39-
->view(config('exceptions.emailExceptionView'))
39+
->view(config('emailExceptionView'))
4040
->with('content', $this->content);
4141
}
4242
}

src/App/Traits/ExceptionNotificationHandlerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ trait ExceptionNotificationHandlerTrait
2929
public function register(): void
3030
{
3131
$this->reportable(function (Throwable $e) {
32-
$enableEmailExceptions = config('exceptions.emailExceptionEnabled', true);
32+
$enableEmailExceptions = config('emailExceptionEnabled');
3333

3434
if ($enableEmailExceptions && $this->shouldReport($e)) {
3535
$this->sendEmail($e);

0 commit comments

Comments
 (0)