Skip to content

Commit 11b0163

Browse files
committed
fix: Exception handling closure
1 parent 2f4b059 commit 11b0163

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ 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('emailExceptionEnabled');
133+
$enableEmailExceptions = config('exceptions.emailExceptionEnabled');
134134
135-
if ($enableEmailExceptions && $this->shouldReport($e)) {
135+
if ($enableEmailExceptions) {
136136
$this->sendEmail($e);
137137
}
138138
});

src/App/Traits/ExceptionNotificationHandlerTrait.php

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

34-
if ($enableEmailExceptions && $this->shouldReport($e)) {
34+
if ($enableEmailExceptions) {
3535
$this->sendEmail($e);
3636
}
3737
});

0 commit comments

Comments
 (0)