Skip to content

Commit 1ebdd3d

Browse files
committed
remove array filter for old response api template
1 parent e18bf23 commit 1ebdd3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/ResultService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,13 @@ public function toJson()
201201
}
202202

203203
if($this->status !== null) {
204-
return response()->json(array_filter([
204+
return response()->json([
205205
'success' => $this->getStatus(),
206206
'code' => $http_code,
207207
'message' => $this->getMessage(),
208208
'data' => $this->getData(),
209209
'errors' => $this->getError(),
210-
]), $http_code);
210+
], $http_code);
211211
} else {
212212
return response()->json(array_filter([
213213
'code' => $http_code,

0 commit comments

Comments
 (0)