Laravel-admin 弹出表单 表单组合请问怎么用?
https://laravel-admin.org/docs/zh/model-gr...文档
请问下模态框弹出的表单如何做表单组合?
public function form()
{
$type = [
1 => '广告',
2 => '违法',
3 => '钓鱼',
];
$this->checkbox('type', '类型')->options($type);
$this->textarea('reason', '原因')->rules('required');
}
官方文档示例是 $this-> 就看不懂了
只在https://laravel-admin.org/docs/zh/model-form-fields 组建使用里面看到了
$form->fieldset('用户信息', function (Form $form) {
$form->text('username');
$form->email('email');
});
表单组合,请问下模态框里面如何这样使用?
推荐文章: