当前位置: 代码迷 >> 综合 >> PHP Blade模板
  详细解决方案

PHP Blade模板

热度:56   发布时间:2023-09-06 11:19:35.0

PHP Blade模板

{!! Form::text('title',null,['class'=>'form-control']) !!}

拿这个来开刀吧:

  1. Form::text 表示<input type='text' />,还要一堆比如 <input type='password' />等你可以参照着写。

  2. 'title' 表示 name='title'

  3. null 表示 value=''

  4. 'class'=>'form-control' 表示class='form-control',这里可以指定idplaceholder等一系列你想指定的属性