This is my code
{{ Form::password('password') , array('placeholder' => 'Password', 'name' => 'pass') }}
This is the exception:
ErrorException
Array to string conversion
Could you help please?
This is my code
{{ Form::password('password') , array('placeholder' => 'Password', 'name' => 'pass') }}
This is the exception:
ErrorException
Array to string conversion
Could you help please?
The array needs be the second argument of Form::password()
, you closed the parenthesis too early. Blade thought you where thwowing an array in its echo
structure: <?php echo Form::password(), array('placeholder'...;?>
and therefore you got that 'Array to string conversion' error.
It should be:
{{ Form::password('password', array('placeholder' => 'Password', 'name' => 'pass')) }}
Definition:
public string password(string $name, array $options = array())