It gives me this error, when I use large forms instead of html forms,
settings.blade.php;
@if (is_array($settings) || is_object($settings))
@foreach($settings as $set)
{{ Form::bstext('title', $set->title )}}
.
.
.
@endforeach
@endif
FormServiceProvider.php
Form::component('bstext', 'components.form.text', ['name', 'value', 'attributes']);
and text.blade.php
<div class="col-md-4">
<div class="form-group">
<label>{{$name}}</label>
{{ Form::text($name, $value, array_merge(['class' => 'form-control'], $attributes)) }}
</div>
</div>
Where do i mistake ?
i edited my formserviceprovider and it works.
Form::component('input_form', 'components.form.input', ['name', 'value', 'attributes'=>[]]);
thanks for @u_mulder
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.