Laravel-admin: $form和$grid如何读取 Model 中自定义的Attribute属性

Created on 23 Jan 2018  ·  6Comments  ·  Source: z-song/laravel-admin

在 tinker 测试是可以正常取到的
但是

$form->number('abc','测试 abc');

没有取到值

Most helpful comment

在 append里加上对应属性,让你新加的属性能被序列化

All 6 comments

It's works perfectly.

暂时用 default解决

外国有人看懂了中文?

@hhxiaohei @samfrm

@AaronChengHao I use Google Translate to understand.

在 append里加上对应属性,让你新加的属性能被序列化

Was this page helpful?
0 / 5 - 0 ratings