This commit is contained in:
2026-07-28 15:11:30 +04:00
parent 50671884dd
commit c007a755fe
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ class SaveNewsRequest extends FormRequest
'body' => ['required', 'string', 'max:20000'],
'sort_order' => ['required', 'integer', 'min:0', 'max:9999'],
'is_published' => ['nullable', 'boolean'],
'image' => ['nullable', 'image', 'max:2048'],
'image' => ['nullable', 'image', 'max:10240'],
];
}
@@ -47,7 +47,7 @@ class SaveNewsRequest extends FormRequest
'sort_order.min' => 'Порядок вывода не может быть отрицательным.',
'sort_order.max' => 'Порядок вывода слишком большой.',
'image.image' => 'Файл должен быть изображением.',
'image.max' => 'Изображение не должно превышать 2 МБ.',
'image.max' => 'Изображение не должно превышать 10 МБ.',
];
}
}