mardi 12 novembre 2019

How to validate array of files?

I use this validation rule:

 $validator = Validator::make($request->all(), [
        'file' => 'required|file|max:100000',
    ]);

Template is:

   {!! Form::file('file[]', []) !!}

I tried to send files[] as array, but my validation rule does not work



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire