我的表单标签有问题。
尝试使用{{Form::label("label")}}
之类的代码但<label for="label</label>
尝试在app / start / global.php中添加这些,但问题仍然存在
Blade::setContentTags('{{', '}}'); // for variables and all things Blade
Blade::setEscapedContentTags('{{{', '}}}'); // for escaped data
任何解决方案?谢谢你的建议
UPD:我的视图文件有一个blade.php扩展名
UPD: 主要观点:
{{Form::open(["url"=>"/admin/goods", "method" => "post", 'files'=>true])}}
@include("admin.goods.form", array('tags' => "", 'props' => ""))
{{Form::close()}}
表单视图:
<div class="row">
{{Form::label("title")}}
{{Form::text("title", null, ["class"=>"form-control"])}}
</div>
{{Form::submit("Send", ["class"=>"btn btn-primary", "id" => "submitForm"])}}