添加市场
This commit is contained in:
@@ -22,6 +22,7 @@ class ProductFormRequest extends BaseFormRequest
|
||||
return [
|
||||
'category_id' => ['required','integer', new Exists(ProductCategoryModel::class,'id')],
|
||||
'supplier_id' => ['nullable','integer', 'exclude_if:supplier_id,0', new Exists(SupplierModel::class,'id')],
|
||||
'market' => 'nullable|string|max:50',
|
||||
'name' => 'required|string|max:100',
|
||||
'spec' => 'nullable|string|max:100',
|
||||
'unit' => 'nullable|string|max:20',
|
||||
|
||||
Reference in New Issue
Block a user