Laravel Validation check array size min and max
snippet in php

Laravel Validation check array size min and max

user4329

'images' => 'array|max:3',
'images.*' => 'mimes:jpeg,png,jpg,gif,svg'