在这里,我有一部分代码不想在用户界面中显示。
<div class="form-group">
<label for="customer_id" class="col-sm-4 control-label">{{trans('sale.customer')}}</label>
<div class="col-sm-8">
{!! Form::select('customer_id', $customer, Input::old('customer_id'), array('class' => 'form-control')) !!}
</div>
</div>
我希望隐藏此部分。Laravel 表单有form::hidden()
方法可以做到这一点,但我如何在我的form::select()
方法中应用它。提前致谢。