Level 41
This is useful http://ericlbarnes.com/laravel-array-validation/ or you can create a custom validation rule.
Hi, I am working on Multi and single Image upload system for a blog. My cole looks like this: {!! Form::file('images[]', ['class' => 'file-input', 'multiple']) !!} But if I try to validate it from a Request using rules() ex. return[ 'images' =>'required]', id does not work. If I leave the file input empty it goes trough without error. I tried Form::file('images'... ) the same thing. So I was forced to create a Validate model. But Is it possible to validate before the request hits the Controller? Thanks. Best regards
Please or to participate in this conversation.