x1 and x2 reports

This commit is contained in:
omair saleh
2020-12-05 13:01:48 +08:00
parent 258b4a8626
commit bc9e148916
+3 -1
View File
@@ -59,7 +59,9 @@ class Handler extends ExceptionHandler
}
if ($exception instanceof AuthorizationException) {
return response()->redirectTo('/');
return response()->json([
'error' => 'Resource not found'
], 404);
}
return parent::render($request, $exception);