简体   繁体   English

设置中的Laravel-Backpack / Settings表字段

[英]Laravel-Backpack/Settings table field in settings

Is it possible to use the table settings? 是否可以使用表格设置? I was able to add a table field, but after pressing the Add Value and Trash nothing happens. 我能够添加一个表字段,但在按下添加值和垃圾后没有任何反应。 Save button saves NULL in column value in database. “保存”按钮在数据库的列值中保存NULL。

field in settings table: 设置表中的字段:

{ "name":"value", "label":"Value", "type":"table", "columns":{"name":"Name", "desc":"Desc", "price":"Price"}, "max":"5", "min":"0" }

and with entity_singular: 和entity_singular:

{ "name":"value", "label":"Value", "type":"table", "entity_singular":"price", "columns":{"name":"Name", "desc":"Desc", "price":"Price"}, "max":"5", "min":"0" }

Your code works for me perfectly in the latest Backpack. 您的代码在最新的背包中完美适合我。 You could try: 你可以尝试:

1) checking if there are any javascript errors on page (that stop the table from working properly); 1)检查页面上是否有任何javascript错误(阻止表格正常工作);

2) a composer update to get the latest version; 2)获取最新版本的composer update ;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM