File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 9
9
'disabledOn ' => [
10
10
//
11
11
],
12
+
13
+ 'cacheCooldown ' => 10 , // in minutes
12
14
];
Original file line number Diff line number Diff line change 12
12
# {{ $exception ? $exception -> getLine () : " " } }
13
13
14
14
## URL :
15
- # {{ request ()-> url ( ) ?? " " } }
15
+ # {{ url ( request ()-> getPathInfo () ) ?? " " } }
16
16
17
17
## Trace :
18
18
{{ $exception || $stackTrace ? $stackTrace : " " } }
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public function handle($event)
40
40
$ errorHash = md5 ($ event ->context ['exception ' ]->getMessage () . $ event ->context ['exception ' ]->getFile ());
41
41
42
42
$ cacheKey = 'error_mailer_ ' . $ errorHash ;
43
- $ coolDownPeriod = 15 ;
43
+ $ coolDownPeriod = config ( ' error-mailer.cacheCooldown ' ) ?? 10 ;
44
44
45
45
if (!Cache::has ($ cacheKey )) {
46
46
Mail::to ($ recipient )->send (new ErrorOccurred ($ event ->context ['exception ' ]));
You can’t perform that action at this time.
0 commit comments