Question : validate file count with validate in laravel
Answered by : drab-dugong-uvigzxkvhfnv
request()->validate([ 'images' => 'max:5', // checks length of array 'images.*' => 'max:2048', // checks file size
]);
Source : https://laracasts.com/discuss/channels/laravel/how-to-validate-file-count-example-maximum-5-images-are-allowed-in-laravel-56 | Last Update : Mon, 14 Feb 22