<p> {{Form::password ('password', string('placeholder'=>'Password','maxlength'=>30))}} </p>
change to
<p>{{ Form::password('password', ['placeholder '=> 'Password', 'maxlength' => 30 ]) }}</p>
And same for username.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Having this error, cant seem to find a solution..
{{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 ()}}
Just use html for forms, your code it's same as
<form action="/logincheck" method="POST">
@crsf
<input type="text" name="username" placeholder="Username" maxlength="30">
<input type="password" name="password" placeholder="Password" maxlength="30">
<button type="submit">Submit</button>
</form>
Please or to participate in this conversation.