Rework on product name/description and translate

This commit is contained in:
Deon George
2022-10-18 23:23:45 +11:00
parent bfd17b0686
commit b719efb58c
15 changed files with 148 additions and 62 deletions

View File

@@ -28,7 +28,9 @@ class ProductAddEdit extends FormRequest
public function rules()
{
return [
'description.name' => 'required|string|min:2|max:100',
'translate.name_short' => 'required|string|min:2|max:100',
'translate.name_detail' => 'required|string|min:2|max:100',
'translate.description' => 'required|string|min:2|max:255',
'active' => 'sometimes|accepted',
'model' => 'sometimes|string', // @todo Check that it is a valid model type
'model_id' => 'sometimes|int', // @todo Check that it is a valid model type