validate max length laravel array validation code example
Example: Laravel Validation check array size min and max
'images' => 'array|max:3',
'images.*' => 'mimes:jpeg,png,jpg,gif,svg'
'images' => 'array|max:3',
'images.*' => 'mimes:jpeg,png,jpg,gif,svg'