laravel 请求验证报错提示将字段转换为中文
2018年9月2日打开对应的Requests类 添加方法即可
1 2 3 4 5 6 7 8 9 10 |
public function attributes() { return [ 'province' => '省', 'city' => '城市', 'zip' => '邮编', 'contact_name' => '姓名', 'contact_phone' => '电话', ]; } |