modules init/deactivate, modules migrations

This commit is contained in:
2024-09-23 12:50:50 +03:00
parent f20ba63277
commit 9e2f7cd9e3
20 changed files with 304 additions and 32 deletions

View File

@ -5,12 +5,14 @@ namespace kernel\modules\menu\models\forms;
use kernel\FormModel;
/**
* @property $parent_id
* @property $icon_file
* @property $icon_font
* @property $label
* @property $url
* @property $status
* @property int $parent_id
* @property string $icon_file
* @property string $icon_font
* @property string $label
* @property string $url
* @property int $status
* @property string $slug
* @property string $parent_slug
*/
class CreateMenuForm extends FormModel
{
@ -22,7 +24,9 @@ class CreateMenuForm extends FormModel
'icon_font' => '',
'label' => 'required|min-str-len:1|max-str-len:50',
'url' => 'required|min-str-len:1',
'status' => ''
'status' => '',
'slug' => 'required|min-str-len:1|max-str-len:50',
'parent_slug' => ''
];
}
}