Skip to content

Commit

Permalink
Use JsonResponse instead response() helper
Browse files Browse the repository at this point in the history
  • Loading branch information
vanthao03596 authored and jiannei committed Mar 21, 2021
1 parent d77d593 commit 60a2acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 60a2acf

Please sign in to comment.