テキスト フィールドの代わりに、Laravel-Backpack/Settings ページの Value フィールドにドロップダウンを追加したいと思いadmin/setting/10/edit
ます。提案をいただければ幸いです。
DB設定フィールドで次を使用しましたが、エラーが発生します。
{"name":"value","label":"Value", "title":"Lightbox" ,"type":"select_from_array",
"options":{"lightbox":"lightbox","colorbox1":"colorbox1"}
エラー
Fields.php 28 行目の ErrorException: Undefined index: name in Fields.php line 28 at HandleExceptions->handleError('8', 'Undefined index: name', '/Users/sokada/Code/backpack-ceci/vendor/backpack /crud/src/PanelTraits/Fields.php', '28', array('field' => array(), 'form' => 'both', 'complete_field_array' => array())) in Fields.php SettingCrudController.php の CrudPanel->addField(array()) の 28 行目 69 行目
Fields.php の 28 行目は次のとおりです。
...
// if the label is missing, we should set it
if (! isset($complete_field_array['label'])) {
$complete_field_array['label'] = ucfirst($complete_field_array['name']);
}
...