Skip to content

Commit 60a2acf

Browse files
vanthao03596jiannei
authored andcommitted
Use JsonResponse instead response() helper
1 parent d77d593 commit 60a2acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,6 @@ function ($response) use ($resource) {
377377
*/
378378
protected function response($data = [], $status = 200, array $headers = [], $options = 0): JsonResponse
379379
{
380-
return response()->json($data, $status, $headers, $options);
380+
return new JsonResponse($data, $status, $headers, $options);
381381
}
382382
}

0 commit comments

Comments
 (0)