Merge pull request #218 from mbdwey/patch4

File only accepts name and options attributes
This commit is contained in:
Denis Duliçi 2018-02-19 17:00:36 +03:00 committed by GitHub
commit 8d9c34af31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
<div class="form-group {{ $col }} {{ isset($attributes['required']) ? 'required' : '' }} {{ $errors->has($name) ? 'has-error' : '' }}" style="min-height: 59px">
{!! Form::label($name, $text, ['class' => 'control-label']) !!}
{!! Form::file($name, $value, array_merge(['class' => 'form-control'], $attributes)) !!}
{!! Form::file($name, array_merge(['class' => 'form-control'], $attributes)) !!}
{!! $errors->first($name, '<p class="help-block">:message</p>') !!}
</div>