diff --git a/src/JsonResource.php b/src/JsonResource.php index 8a84b4e..82cdbb4 100644 --- a/src/JsonResource.php +++ b/src/JsonResource.php @@ -71,7 +71,7 @@ public function single(): Response { if (is_null($this->data)) return response()->json([ - 'data' => [] + 'data' => null ]); if ($this->data instanceof Collection)