后台表单验证字段语言包
This commit is contained in:
parent
06b812d5e2
commit
229831408d
|
|
@ -36,4 +36,11 @@ class AdminRoleRequest extends FormRequest
|
|||
'name' => 'required|string|max:10',
|
||||
];
|
||||
}
|
||||
|
||||
public function attributes()
|
||||
{
|
||||
return [
|
||||
'name' => trans('role.name'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,4 +40,11 @@ class AdminUserRequest extends FormRequest
|
|||
|
||||
return $rules;
|
||||
}
|
||||
|
||||
public function attributes()
|
||||
{
|
||||
return [
|
||||
'email' => trans('user.email'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class CategoryRequest extends FormRequest
|
|||
public function attributes()
|
||||
{
|
||||
return [
|
||||
'descriptions.*.name' => '名称',
|
||||
'descriptions.*.name' => trans('category.name'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,12 +36,12 @@ class CurrencyRequest extends FormRequest
|
|||
public function attributes()
|
||||
{
|
||||
return [
|
||||
'name' => '名称',
|
||||
'code' => '编码',
|
||||
'symbol_left' => '左符号',
|
||||
'symbol_right' => '右符号',
|
||||
'value' => '汇率值',
|
||||
'decimal_place' => '小数位数',
|
||||
'name' => trans('currency.name'),
|
||||
'code' => trans('currency.code'),
|
||||
'symbol_left' => trans('currency.symbol_left'),
|
||||
'symbol_right' => trans('currency.symbol_right'),
|
||||
'value' => trans('currency.value'),
|
||||
'decimal_place' => trans('currency.decimal_place'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ class CustomerGroupRequest extends FormRequest
|
|||
public function attributes()
|
||||
{
|
||||
return [
|
||||
'descriptions.*.name' => '名称',
|
||||
'level' => '等级',
|
||||
'descriptions.*.name' => trans('customer_group.name'),
|
||||
'level' => trans('customer_group.level'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,10 +48,10 @@ class CustomerRequest extends FormRequest
|
|||
public function attributes()
|
||||
{
|
||||
return [
|
||||
'name' => '姓名',
|
||||
'email' => 'Email',
|
||||
'password' => '密码',
|
||||
'customer_group_id' => '会员组',
|
||||
'name' => trans('customer.name'),
|
||||
'email' => trans('customer.email'),
|
||||
'password' => trans('customer.password'),
|
||||
'customer_group_id' => trans('customer.customer_group_id'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class ForgottenRequest extends FormRequest
|
|||
public function attributes()
|
||||
{
|
||||
return [
|
||||
'password' => '密码'
|
||||
'password' => trans('customer.password')
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,4 +40,12 @@ class PageRequest extends FormRequest
|
|||
|
||||
return $rules;
|
||||
}
|
||||
|
||||
public function attributes()
|
||||
{
|
||||
return [
|
||||
'title' => trans('page.title'),
|
||||
'content' => trans('page.content'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,13 +47,13 @@ class RmaRequest extends FormRequest
|
|||
public function attributes()
|
||||
{
|
||||
return [
|
||||
'order_id' => '订单',
|
||||
'order_product_id' => '订单商品',
|
||||
'customer_id' => '顾客',
|
||||
'quantity' => '数量',
|
||||
'opened' => '已拆包装',
|
||||
'rma_reason_id' => '退换货原因',
|
||||
'type' => '售后服务类型',
|
||||
'order_id' => trans('rma.order_id'),
|
||||
'order_product_id' => trans('rma.order_product_id'),
|
||||
'customer_id' => trans('rma.customer_id'),
|
||||
'quantity' => trans('rma.quantity'),
|
||||
'opened' => trans('rma.opened'),
|
||||
'rma_reason_id' => trans('rma.rma_reason_id'),
|
||||
'type' => trans('rma.type'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* category.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author TL <mengwb@opencart.cn>
|
||||
* @created 2022-08-29 20:43:32
|
||||
* @modified 2022-08-29 20:43:32
|
||||
*/
|
||||
|
||||
return [
|
||||
'name' => 'Name',
|
||||
];
|
||||
|
|
@ -11,4 +11,10 @@
|
|||
return [
|
||||
'decimal_point' => '.',
|
||||
'thousand_point' => ',',
|
||||
'name' => 'Name',
|
||||
'code' => 'Code',
|
||||
'symbol_left' => 'Symbol Left',
|
||||
'symbol_right' => 'Symbol Right',
|
||||
'value' => 'Value',
|
||||
'decimal_place' => 'Decimal Place',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -14,4 +14,6 @@ return [
|
|||
'email' => 'Email',
|
||||
'from' => 'From',
|
||||
'customer_group' => 'Group',
|
||||
'password' => 'Password',
|
||||
'customer_group_id' => 'Customer Group',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* customer_group.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author Edward Yang <yangjin@opencart.cn>
|
||||
* @created 2022-08-26 18:41:07
|
||||
* @modified 2022-08-26 18:41:07
|
||||
*/
|
||||
|
||||
return [
|
||||
'level' => 'Level',
|
||||
'name' => 'Customer Group Name',
|
||||
];
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* page.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author TL <mengwb@opencart.cn>
|
||||
* @created 2022-07-28 20:59:38
|
||||
* @modified 2022-07-28 20:59:38
|
||||
*/
|
||||
return [
|
||||
'title' => 'Title',
|
||||
'content' => 'Content',
|
||||
];
|
||||
|
|
@ -10,7 +10,9 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'order_product_id' => 'Order Product ID',
|
||||
'order_id' => 'Order',
|
||||
'order_product_id' => 'Order Product',
|
||||
'customer_id' => 'Customer',
|
||||
'quantity' => 'Quantity',
|
||||
'opened' => 'Opened',
|
||||
'rma_reason_id' => 'Reason ID',
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* role.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author TL <mengwb@opencart.cn>
|
||||
* @created 2022-08-29 20:33:32
|
||||
* @modified 2022-08-29 20:33:32
|
||||
*/
|
||||
|
||||
return [
|
||||
'name' => 'Name',
|
||||
];
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* role.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author TL <mengwb@opencart.cn>
|
||||
* @created 2022-08-29 20:33:32
|
||||
* @modified 2022-08-29 20:33:32
|
||||
*/
|
||||
|
||||
return [
|
||||
'email' => 'Email',
|
||||
];
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* category.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author TL <mengwb@opencart.cn>
|
||||
* @created 2022-08-29 20:43:32
|
||||
* @modified 2022-08-29 20:43:32
|
||||
*/
|
||||
|
||||
return [
|
||||
'name' => '分类名称',
|
||||
];
|
||||
|
|
@ -5,10 +5,17 @@
|
|||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author TL <mengwb@opencart.cn>
|
||||
* @created 2022-07-28 17:21:38
|
||||
* @modified 2022-07-28 17:21:38
|
||||
* @created 2022-08-29 20:28:59
|
||||
* @modified 2022-08-29 20:28:59
|
||||
*/
|
||||
|
||||
return [
|
||||
'decimal_point' => '.',
|
||||
'thousand_point' => ',',
|
||||
'name' => '名称',
|
||||
'code' => '编码',
|
||||
'symbol_left' => '左符号',
|
||||
'symbol_right' => '右符号',
|
||||
'value' => '汇率值',
|
||||
'decimal_place' => '小数位数',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* customer_group.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author Edward Yang <yangjin@opencart.cn>
|
||||
* @created 2022-08-26 18:41:07
|
||||
* @modified 2022-08-26 18:41:07
|
||||
*/
|
||||
|
||||
return [
|
||||
'level' => '等级',
|
||||
'name' => '客户组名称',
|
||||
];
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* page.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author TL <mengwb@opencart.cn>
|
||||
* @created 2022-07-28 20:59:38
|
||||
* @modified 2022-07-28 20:59:38
|
||||
*/
|
||||
return [
|
||||
'title' => '标题',
|
||||
'content' => '内容',
|
||||
];
|
||||
|
|
@ -10,7 +10,9 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'order_id' => '订单',
|
||||
'order_product_id' => '订单商品',
|
||||
'customer_id' => '顾客',
|
||||
'quantity' => '数量',
|
||||
'opened' => '已拆包装',
|
||||
'rma_reason_id' => '退换货原因',
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* role.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author TL <mengwb@opencart.cn>
|
||||
* @created 2022-08-29 20:33:32
|
||||
* @modified 2022-08-29 20:33:32
|
||||
*/
|
||||
|
||||
return [
|
||||
'name' => '角色名',
|
||||
];
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* role.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author TL <mengwb@opencart.cn>
|
||||
* @created 2022-08-29 20:33:32
|
||||
* @modified 2022-08-29 20:33:32
|
||||
*/
|
||||
|
||||
return [
|
||||
'email' => 'Email',
|
||||
];
|
||||
Loading…
Reference in New Issue