Hi I'm trying to validate an array input and select like this:
<td width="23%">
{!!Form::select('mmscod_id[]',['' => '- Seleccione un material -'] +$mat,null,['class' => 'form-control', 'id'=>'mmscod_id'])!!}
</td>
<td width="17%">
<input type="text" class="form-control" id="cantidad" name="vtcanp[]"/>
</td>
<td width="17%">
<input type="text" class="form-control" id="precio" name="vtprep[]"/>
</td>
I'm using the proengsoft/laravel-jsvalidation for client-side validation. For the back-end I use Laravel's Form request.
I also use the method of this site: How To: Validate an array of form fields with Laravel but it doesn't work and throws errors:
Edit: I forgot to mention that these elements are created dynamically Please help me