PHP Blade模板
{!! Form::text('title',null,['class'=>'form-control']) !!}
拿这个来开刀吧:
-
Form::text
表示<input type='text' />
,还要一堆比如<input type='password' />
等你可以参照着写。 -
'title'
表示name='title'
-
null
表示value=''
'class'=>'form-control'
表示class='form-control'
,这里可以指定id
,placeholder
等一系列你想指定的属性