在laravel-admin中,自定义使用new Form()无法回显详情,问下正确的new Form 使用
//信息更改
public function update_info(){
$form=new Form(new User());
$form->text('name','姓名');
$form->text('phone','手机号');
return (new Content())->body($form);
}
还有如下写法
$form=new Form(new User(),function($form){
$form->text('name','姓名');
$form->text('phone','手机号');
});
页面显示
没有回显对应的详情内容,问下正确的自定义new Form 写法
推荐文章: