You cannot get around this simply by the fact that you have to set the second parameter, which is the "value" of the input, to something, if you do not want you to skip null there, and it will look like this:
{{Form::text('username', null, array('autofocus'=>'autofocus'))}}
Pooria khodaveissi
source share