$form->hidden('user.foo');

            $form->saving(function (Form $form) {
                /** 错的 
                报间接修改重载属性错误
                Indirect modification of overloaded property
                **/
                $form->user['foo'] = $form->baz;
                //正确写法
                $form->user = ['foo' => $form->baz];
            });

铮gg
93 声望12 粉丝

« 上一篇
ssm 配置解读