How to apply validations for image size on product image
-
This post is deleted! -
Hello @Sarthak ,
You can validate the image size limit from the product controller or from the edit.blade.php under the packages/Webkul/Admin/Resources/views/catalog/products path.Thank you.
-
@Naresh-webkul
Sir, can you plzz guide me how to apply validations on product image. bez i was trying on both but it cann't apply properly -
Hello @Sarthak ,
follow the path and add validation in file:
packages\Webkul\Product\Http\Requests\ProductForm.phpHere you can apply the validation rule for the product image.
also you shoul check this: https://laravel.com/docs/5.8/validation
Thank you.
-
@Naresh-webkul Thank you sir.
It's working.