Level 6
I'm having the same problem. Have you found a solution?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
For some reason my image dimension validation is failing when I have ratio=1 trying to validate square images only.
$this->validate($request, [
'image' => 'required|image|dimensions:min_width=1400,min_height=1400,max_width=3000,max_height=3000,ratio=1/1',
]);
The image I am using to test is: http://i.imgur.com/wtZCXWM.png it is 1400x1400
When I remove ratio=1 the validation passes. I also tried ratio=1.0 and ratio=1/1 but no luck.
Please or to participate in this conversation.