后台商品编辑

This commit is contained in:
TL 2022-08-23 16:46:34 +08:00
parent ba32addfdb
commit ca0320253d
3 changed files with 4 additions and 14 deletions

View File

@ -44,10 +44,10 @@ class ProductRequest extends FormRequest
public function attributes()
{
return [
'descriptions.*.name' => trans('admin/product.name'),
'brand_id' => trans('admin/product.brand'),
'skus.*.sku' => trans('admin/product.sku'),
'skus.*.price' => trans('admin/product.price')
'descriptions.*.name' => trans('product.name'),
'brand_id' => trans('product.brand'),
'skus.*.sku' => trans('product.sku'),
'skus.*.price' => trans('product.price')
];
}
}

View File

@ -17,9 +17,4 @@ return [
'products_delete' => 'Delete',
'products_trashed' => 'Trashed',
'products_restore' => 'restore',
'name' => 'Product Name',
'sku' => 'SKU',
'price' => 'Price',
'Brand' => 'Brand',
];

View File

@ -17,9 +17,4 @@ return [
'products_delete' => '删除商品',
'products_trashed' => '回收站',
'products_restore' => '恢复回收站',
'name' => '商品名称',
'sku' => 'SKU',
'price' => '价格',
'Brand' => '品牌',
];