admin init command

This commit is contained in:
apuc committed 2024-09-23 17:03:42 +03:00
1 parent 0f05bc2391
commit a48088581f
25 files changed
+376 -34

No files matched your search

@@ -4,16 +4,22 @@ namespace kernel\modules\option\models\forms;
use kernel\FormModel;
/**
* @property string $key
* @property string $value
* @property string $label
* @property integer $status
*/
class CreateOptionForm extends FormModel
{
public function rules(): array
{
return [
'admin_theme_paths' => '',
'active_admin_theme' => '',
'module_paths' => '',
'active_modules' => ''
'key' => 'required|min-str-len:1|max-str-len:50',
'value' => '',
'label' => '',
'status' => ''
];
}