📅  最后修改于: 2022-03-11 14:54:11.445000             🧑  作者: Mango
$rules = [
'name' => 'required',
'email' => 'required|email',
'message' => 'required|max:250',
];
$customMessages = [
'required' => 'The :attribute field is required.'
];
$this->validate($request, $rules, $customMessages);
//@sujay