$validator = Validator::make($request->all(), [
'barCodeNo' => 'required',
'propertyNo' => 'required',
]);
if ($validator->fails()) {
$response['code'] = 400;
$response['errors'] = $validator->errors()->toArray();
return response()->json(['response' => $response],400);
}