$validator = Validator::make($params, [
'id'=>'required|integer',
'company_name' => [
'required',
Rule::unique('company_info')->ignore((int)$params['id']),
],
'category_id'=>'required|integer',
'email'=>'required|email',
'user_id'=>'required|integer',
]);
if ($validator->fails()) {
return $this->output([],['code' => 1005, 'msg' => $validator->errors()->first()]);
}