Question : image dimension when uploading in laravel validation
Answered by : kind-katipo-0q0rpdncxs7i
$this->validate($request, [ 'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048|dimensions:width=500,height=500',]);
Source : https://www.itsolutionstuff.com/post/laravel-53-image-dimension-validation-rules-exampleexample.html | Last Update : Fri, 30 Apr 21