Using HTML Placeholder in Laravel 4

前端 未结 5 1671
有刺的猬
有刺的猬 2020-12-31 01:38
{{ Form::text(\'username\', Input::old(\'username\')) }}

This is my code, I want to add Username as placeholder in the text box. I already use boot

5条回答
  •  清酒与你
    2020-12-31 02:21

    {{ Form::text('username', Input::old('username'),  array('placeholder'=>'Username')) }}
    

    This works for Laravel 4!!

提交回复
热议问题