Skip to content

Commit 1bbb459

Browse files
authored
Merge pull request #136 from Laravel-Backpack/add-docs-about-field-name
add notes about field name constraint
2 parents 1d80f09 + 15f7976 commit 1bbb459

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Settings are stored in the database in the "settings" table. Its columns are:
6363
- name (ex: Contact form email address)
6464
- description (ex: The email address that all emails go to.)
6565
- value (ex: [email protected])
66-
- field (Backpack CRUD field configuration in JSON format. https://backpackforlaravel.com/docs/crud-fields#default-field-types)
66+
- field (Backpack CRUD field configuration in JSON format. The "name" of the field is **mandatory** to be "value") - see the field types and their configuration code on https://backpackforlaravel.com/docs/crud-fields#default-field-types
6767
- active (1 or 0)
6868
- created_at
6969
- updated_at
@@ -88,6 +88,8 @@ For example, you can override the Backpack `show_powered_by` setting in `/config
8888
| field | {"name":"value","label":"Value","type":"checkbox"} |
8989
| active | 1 |
9090

91+
**NOTE**: The `field` column should be a JSON string. The `name` key in the JSON string should be `value`. Using any other key will not work.
92+
9193
3. Open up the `app/Providers/AppServiceProvider` file, and add the below lines:
9294

9395
```diff

0 commit comments

Comments
 (0)