Laravel-admin: 希望 table 能支持 hasMany

Created on 12 Jun 2019  ·  2Comments  ·  Source: z-song/laravel-admin

  • Laravel Version: 5.8.16
  • PHP Version:
  • Laravel-admin: 7.3

Description:

希望 EncoreAdminFormFieldTable 类可以支持 hasMany 关系操作,
table从 HasMany 继承,但是当处理保存 HasMany关系时报错

ErrorException (E_NOTICE)
Undefined index: _remove_
 public function rules()
    {
        return $this->hasMany(xxx);
    }
$form->table("rules", "规则", function ($form) {
            // xxx
        });

Most helpful comment

$form->hasMany('rules', '规则', function ($form) {
    // 
})->mode('table');

All 2 comments

$form->hasMany('rules', '规则', function ($form) {
    // 
})->mode('table');

原来可以这么玩,,感谢 感谢

Was this page helpful?
0 / 5 - 0 ratings

Related issues

clock1129 picture clock1129  ·  3Comments

amun1303 picture amun1303  ·  3Comments

chenyongmin picture chenyongmin  ·  3Comments

vlongen picture vlongen  ·  3Comments

evans-kim picture evans-kim  ·  3Comments