Validate File Count With Validate In Laravel

[Solved] Validate File Count With Validate In Laravel | Php - Code Explorer | yomemimo.com
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

Answers related to validate file count with validate in laravel

Code Explorer Popular Question For Php