It's about expecting JSON, not accepting it.

This commit is contained in:
James Cole 2018-05-29 18:33:43 +02:00
parent 10abd7b0ae
commit fbb9d7c6b4
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -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