diff --git a/app/Support/Response.php b/app/Support/Response.php index 74e6436..8581206 100644 --- a/app/Support/Response.php +++ b/app/Support/Response.php @@ -39,10 +39,9 @@ class Response $resp = [ "code" => ResponseCode::SUCCESS, "message" => $message, + "data" => $data, ]; - if ($data) $resp["data"] = $data; - return $this->response->json($resp); }