-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetting.php
More file actions
33 lines (30 loc) · 782 Bytes
/
setting.php
File metadata and controls
33 lines (30 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
return [
'is_admin' => true,
'has_create' => false,
'model' => \Knowfox\Crud\Models\Setting::class,
'package_name' => 'crud',
'entity_name' => 'setting',
'entity_title' => [' Setting', 'Settings'], // singular, plural
'order_by' => 'name',
'columns' => [
'translatedName' => 'Name',
'prettyValue' => 'Value',
'translatedField' => 'Field Type',
],
'fields' => [
'name' => [
'label' => 'Name',
'type' => 'text',
],
'field' => [
'label' => 'Field Type',
'type' => 'select',
'options' => 'setting_types',
],
'value' => [
'label' => 'Value',
'type' => 'setting_value',
],
],
];