From fbb9d7c6b4c908f56e96666f9d42b8bfb7d01f66 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 29 May 2018 18:33:43 +0200 Subject: [PATCH] It's about expecting JSON, not accepting it. --- app/Exceptions/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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