【发布时间】:2019-04-30 05:57:01
【问题描述】:
我的一个表单字段需要能够保存复选框字段中的布尔值。选中 = 真,取消选中 = 假。如何设置我的输入字段?
<input type="checkbox" class="custom-control-input" id="user_private_account" @if($usersetting->user_private_account == true) checked @endif >
【问题讨论】:
-
您只想显示已选中?您的输入中缺少名称
标签: laravel