vendredi 3 avril 2015

Skip multiple input fields in Laravel 4


Vote count:

0




I have a couple of fields of type array which I want to avoid by using Input::except(). How do I do it? HTML is given below:



<tr>
<td>
{{ Form::input('text', 'batch_name[]', null, ['placeholder' =>'Enter batch name']) }}
</td>
<td>
{{ Form::input('date', 'availability_date[]', null) }}
</td>
<td>
<a class="add" title="Add Row" href="#"><img src="{{URL::to('public/assets/images/plus.png')}}" alt=""/></a>
</td>
</tr>


Following does not work and gives error:


htmlentities() expects parameter 1 to be string, array given



Validator::make(Input::except('_token','batch_name[]','availability_date[]'), $rules);


asked 50 secs ago

Volatil3

1,674






Skip multiple input fields in Laravel 4

Aucun commentaire:

Enregistrer un commentaire