Hello, I am currently working with Laravel 4 formats. I am trying to create text input with a specific class without selecting the "default value". I want to do the following:
{{ Form::text('first_name', array('class' => 'first_name')) }}
However, I get this error ( htmlentities() expects parameter 1 to be string, array given .) If you do not add a default value:
{{ Form::text('first_name', 'Some Value', array('class' => 'first_name')) }}
The default value fills the field and must be deleted before entering a new value. Therefore, it cannot even be used as a seat holder.
Thanks in advance,
Dan
php laravel laravel-4 blade
Liondedan
source share