Here is the error:
syntax error, unexpected token "=>", expecting ")"
And here is my code:
{{Form::open (array ('url' => 'logincheck'))}} <p> {{Form::text ('username', string ('placeholder'=>'Username','maxlength'=>30))}} </p> <p> {{Form::password ('password', string('placeholder'=>'Password','maxlength'=>30))}} </p> <p> {{Form::submit ('Submit')}} </p> {{Form::close ()}}
Change the string(... to array(...
string(
array(
I recommend you use the short array syntax like that:
{{ Form::text('username', ['placeholder' => 'Username', 'maxlength' => 30]) }}
2.1m questions
2.1m answers
60 comments
57.0k users