Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问怎么重写编辑和保存方法在配置里 #24

Open
xiayin1992728 opened this issue Nov 24, 2018 · 1 comment
Open

请问怎么重写编辑和保存方法在配置里 #24

xiayin1992728 opened this issue Nov 24, 2018 · 1 comment

Comments

@xiayin1992728
Copy link

有些需求是,字段自动生成不让用户填写的但是现在,在配置里面做不到这个,比如订单号是自动生成,然后要保存到数据库,这个配置的保存方法就不能实现,我想有没有一个重写默认他自带保存方法,这样就能实现很多特殊的需求。

@xiayin1992728
Copy link
Author

可以使用下面方法来代替隐藏域:

'ilink' => [
            'title' => '推荐链接',
            'visible' => false,
            'type' => 'text',
            'value' => $link
        ]

visible 设置成 false 会隐藏但是数据还是会提交并保存到数据库.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant