master
parent
4d85b86f69
commit
57ae81b328
|
|
@ -13,7 +13,7 @@ trait JsonResponse
|
||||||
return response()->json($result);
|
return response()->json($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function success($data = null, $message = '')
|
public function success($message = '', $data = null)
|
||||||
{
|
{
|
||||||
return $this->json($data, Response::HTTP_OK, $message);
|
return $this->json($data, Response::HTTP_OK, $message);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue