You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What a peculiar bug. Also modifies code to try and return the correct
status code, as well as return JSON based errors on any request that
Laravel thinks should have a JSON based response.
if ($request->isXmlHttpRequest() || $request->ajax() || $request->is('remote/*')) {
49
+
if ($request->expectsJson()) {
50
50
$response = response()->json([
51
51
'error' => ($exceptioninstanceof DisplayException) ? $exception->getMessage() : 'An unhandled error occured while attempting to process this request.',
0 commit comments