We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
protected function form() { $form = new Form(new Product); $form->text('title', '商品名称'); $form->decimal('price', '商品价格'); $form->image('image', '商品图'); $form->switch('on_sale', '是否上架')->default(1); $form->switch('required_sale', '促销产品')->default(0); $form->hasMany('skus', function (Form\NestedForm $form) { $form->text('title', 'SKU名称'); $form->decimal('price', 'sku价格'); $form->text('description', 'sku描述'); $form->number('amount', '次数'); }); $form->editor('description', '商品描述'); return $form; }
编辑器不能正常显示,而注释掉$form->hasMany()后能正常使用
The text was updated successfully, but these errors were encountered:
遇到同样的问题
Sorry, something went wrong.
No branches or pull requests
编辑器不能正常显示,而注释掉$form->hasMany()后能正常使用
The text was updated successfully, but these errors were encountered: