File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
- # Laravel-Exception-Notifier | A Laravel Exceptions Email Notification [ Package] ( https://packagist.org/packages/jeremykenedy/laravel-exception-notifier ) | v1.0.0
1
+ # Laravel-Exception-Notifier | A Laravel Exceptions Email Notification [ Package] ( https://packagist.org/packages/jeremykenedy/laravel-exception-notifier )
2
2
3
3
[ ![ Total Downloads] ( https://poser.pugx.org/jeremykenedy/laravel-exception-notifier/d/total.svg )] ( https://packagist.org/packages/jeremykenedy/laravel-exception-notifier )
4
4
[ ![ Latest Stable Version] ( https://poser.pugx.org/jeremykenedy/laravel-exception-notifier/v/stable.svg )] ( https://packagist.org/packages/jeremykenedy/laravel-exception-notifier )
@@ -36,6 +36,7 @@ Laravel exception notifier will send an email of of the error along with the sta
36
36
37
37
```
38
38
use App\Mail\ExceptionOccured;
39
+ use Illuminate\Support\Facades\Log;
39
40
use Mail;
40
41
use Symfony\Component\Debug\ExceptionHandler as SymfonyExceptionHandler;
41
42
use Symfony\Component\Debug\Exception\FlattenException;
@@ -61,10 +62,8 @@ Laravel exception notifier will send an email of of the error along with the sta
61
62
$enableEmailExceptions = config('exceptions.emailExceptionEnabledDefault');
62
63
}
63
64
64
- if ($enableEmailExceptions) {
65
- if ($this->shouldReport($exception)) {
66
- $this->sendEmail($exception);
67
- }
65
+ if ($enableEmailExceptions && $this->shouldReport($exception)) {
66
+ $this->sendEmail($exception);
68
67
}
69
68
70
69
parent::report($exception);
@@ -92,7 +91,7 @@ Laravel exception notifier will send an email of of the error along with the sta
92
91
93
92
} catch (Exception $exception) {
94
93
95
- dd ($exception);
94
+ Log::error ($exception);
96
95
97
96
}
98
97
}
You can’t perform that action at this time.
0 commit comments