bourse stock
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
506 B

<?php
namespace app\home\validate;
class UploadValidate extends BaseHomeValidate
{
protected $rule = [
'image' => 'require|fileSize:10485760|fileExt:jpg,jpeg,png',
];
protected $message = [
'image.require' => 'Please select a file.',
'image.fileSize' => 'Please ensure that the file size is within 10 MB.',
'image.fileExt' => 'Please upload the image in jpg, jpeg, or png format.',
];
protected $scene = [
'uploadImage' => ['image'],
];
}