public function put(Request $request){
// var_dump($request->title);
$input = $request->all();
$rules = [
'title' => 'required|min:2|max:25',
'body' => 'required',
];
$message = [
'title.*' => 'title格式错误',
// 'title.required' => 'title格式错误',
// 'title.max' => 'title格式错误',
// 'title.min' => 'title格式错误',
'body.*' => 'body格式错误',
// 'body.required' => 'body格式错误',
];
$validator = Validator::make($input,$rules,$message);
var_dump($validator->errors());
var_dump($validator->passes());
dd($validator);
exit();
}