fixed address error
This commit is contained in:
parent
28e1bbfe9a
commit
f861261b3c
|
|
@ -24,8 +24,8 @@ class AddressRequest extends FormRequest
|
|||
public function rules()
|
||||
{
|
||||
return [
|
||||
'name' => 'required',
|
||||
'phone' => 'required',
|
||||
'name' => 'required|min:2|max:16',
|
||||
'phone' => 'required|min:6|max:16',
|
||||
'country_id' => 'required|exists:countries,id',
|
||||
'zone_id' => 'required|exists:zones,id',
|
||||
'address_1' => 'required',
|
||||
|
|
@ -35,11 +35,11 @@ class AddressRequest extends FormRequest
|
|||
public function attributes()
|
||||
{
|
||||
return [
|
||||
'name' => '姓名',
|
||||
'phone' => '电话号码',
|
||||
'country_id' => '国家ID',
|
||||
'zone_id' => '省份ID',
|
||||
'address_1' => '地址1',
|
||||
'name' => trans('address.name'),
|
||||
'phone' => trans('address.phone'),
|
||||
'country_id' => trans('address.country_id'),
|
||||
'zone_id' => trans('address.zone_id'),
|
||||
'address_1' => trans('address.address_1'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* address.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author Edward Yang <yangjin@opencart.cn>
|
||||
* @created 2022-08-22 18:18:59
|
||||
* @modified 2022-08-22 18:18:59
|
||||
*/
|
||||
|
||||
return [
|
||||
'name' => 'Name',
|
||||
'phone' => 'Phone',
|
||||
'country_id' => 'Country ID',
|
||||
'zone_id' => 'Zone ID',
|
||||
'address_1' => 'Address 1',
|
||||
];
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* address.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author Edward Yang <yangjin@opencart.cn>
|
||||
* @created 2022-08-22 18:18:59
|
||||
* @modified 2022-08-22 18:18:59
|
||||
*/
|
||||
|
||||
return [
|
||||
'name' => '姓名',
|
||||
'phone' => '电话号码',
|
||||
'country_id' => '国家ID',
|
||||
'zone_id' => '省份ID',
|
||||
'address_1' => '地址1',
|
||||
];
|
||||
Loading…
Reference in New Issue