Skip to content

Commit

Permalink
bug fix in src/JsonResource.php
Browse files Browse the repository at this point in the history
  • Loading branch information
amirfaramarzi committed Sep 13, 2021
1 parent 987cbd0 commit aaab812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function single(): Response
{
if (is_null($this->data))
return response()->json([
'data' => []
'data' => null
]);

if ($this->data instanceof Collection)
Expand Down

0 comments on commit aaab812

Please sign in to comment.