How do I go about validating an array of uploaded files in Laravel 4? I\'ve set it in the form to allow multiple files, and I\'ve tested that the files exist in the Input::file(
foreach(Request::file('photos') as $key => $value) { $rules['photos.'.$key]="mimes:jpeg,jpg,png,gif|required|max:10000"; $friendly_names['photos.'.$key]="photos"; }
This worked for me in Laravel 5.2