admin init command

This commit is contained in:
2024-09-23 17:03:42 +03:00
parent 0f05bc2391
commit a48088581f
25 changed files with 376 additions and 34 deletions

View File

@ -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' => ''
];
}