diff --git a/src/Traits/JsonResponse.php b/src/Traits/JsonResponse.php index 6ed6c11..cbcd5cf 100644 --- a/src/Traits/JsonResponse.php +++ b/src/Traits/JsonResponse.php @@ -13,7 +13,7 @@ trait JsonResponse return response()->json($result); } - public function success($data = null, $message = '') + public function success($message = '', $data = null) { return $this->json($data, Response::HTTP_OK, $message); }