diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index caef99ffa1..d66d42a274 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -143,7 +143,7 @@ class Handler extends ExceptionHandler || ( // or this one, but it's a JSON exception. $exception instanceof AuthenticationException - && Request::acceptsJson() === true + && Request::expectsJson() === true )) ) { // then, send email