How do you add a custom message to the dimension validation?
All I get is the generic message for both min_width, and min_height.
array (
0 => 'The file has invalid image dimensions.',
)
Rules:
return [
'file' => 'required|mimes:jpeg,png,jpg|dimensions:min_width=700,min_height=500|max:3000',
// 'width' => 'min:800|max:2000',
];
Messages I tried every way I can think of....
return [
...other rules
'file.min_width' => 'Please select wider image',
'min_width' => 'Please select wider image',
'file.file.min_width' => 'Please select wider image',
];
Anyone know how to set your own message?
Thanks,
Dave