Answers for "laravel image upload size validation"

PHP
1

image dimension when uploading in laravel validation

$this->validate($request, [    'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048|dimensions:width=500,height=500',]);
Posted by: Guest on April-23-2021
2

laravel validate max file size

$validator = Validator::make($request->all(), [
    'file' => 'max:500000',
]);
Posted by: Guest on May-05-2020

Code answers related to "laravel image upload size validation"

Browse Popular Code Answers by Language