I was trying to create a password field in the form in Laravel Blade templates but the output doesn't let me enter anything and it's not showing any placeholder either. The code doesn't cause any error.

Form:

{{ Form::open(array('class'=> 'forming')) }}
     {{ Form::text('username','Username',array('class' => 'insi')); }}<br>
     {{ Form::password('password',array('placeholder'=>'Password','class' => 'insi')); }}
{{ Form::close() }}

and the output is like that. Any help?

http://i1289.photobucket.com/albums/b503/darulehsan031/dddff_zps4f4ad69e.png

Second Input form is for password.

有帮助吗?

解决方案

We are not seeing your generated HTML, but usually those problems are related to your HTML. For instance, you are using a CSS class 'insi', which may not letting you see the password characters.

To do a test remove/disable your CSS files from your main HTML and it probably will work fine.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top