Because passwords doesn't have a default value. So you should skip your second argument.
{{ Form::password('password', ['placeholder' => 'Paswoord']) }}
Just a quick heads up, using just [] to refer to arrays may break in some production enviroments, it has happened to me before..
{{ Form::password('field name goes here', ['attribute' => 'value', 'attribute2' => 'value]) }}
I'd recommend you to stick with the classic array() styling
{{ Form::password('field name goes here', array('attribute' => 'value', 'attribute2' => 'value') }}
That might be because your production environment is running an older version of PHP. The feature was added very recently.
maurocasas said:
Just a quick heads up, using just [] to refer to arrays may break in some production enviroments, it has happened to me before..
{{ Form::password('field name goes here', ['attribute' => 'value', 'attribute2' => 'value]) }}
I'd recommend you to stick with the classic array() styling
{{ Form::password('field name goes here', array('attribute' => 'value', 'attribute2' => 'value') }}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community