File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments