diff --git a/src/Response.php b/src/Response.php index 0c89f7d..d44a902 100644 --- a/src/Response.php +++ b/src/Response.php @@ -377,6 +377,6 @@ function ($response) use ($resource) { */ protected function response($data = [], $status = 200, array $headers = [], $options = 0): JsonResponse { - return response()->json($data, $status, $headers, $options); + return new JsonResponse($data, $status, $headers, $options); } }