vendredi 18 mars 2016

Laravel 5 Form loop gives htmlentities() expects parameter 1 to be string, array given

enter image description here

I have the following stripped form:

{{ Form::text('invoicerow[]', null, array( 'class' => 'form-control '.( $errors->has('initial') ? 'errorborder':'' )  ) ) }}

You can add a row by JS. When i post this and validates it false it's return to the form page with this error.

htmlentities() expects parameter 1 to be string, array given (View: /home/xxx/public_html/resources/views/invoice/create.blade.php)

How can i obviated this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire