Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

validate file count with validate in laravel

request()->validate([
    'images' => 'max:5', // checks length of array
    'images.*' => 'max:2048', // checks file size
]);
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #validate #file #count #validate #laravel
ADD COMMENT
Topic
Name
3+5 =