后台商品创建

This commit is contained in:
TL 2022-08-23 15:17:17 +08:00
parent 9c7080b379
commit 5bfc4b84a2
3 changed files with 20 additions and 0 deletions

View File

@ -40,4 +40,14 @@ class ProductRequest extends FormRequest
'skus.*.price' => 'required|numeric',
];
}
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')
];
}
}

View File

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

View File

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