igfs/app/models/forms/CreateMenuForm.php

28 lines
546 B
PHP
Raw Normal View History

2024-08-30 16:14:31 +03:00
<?php
namespace app\models\forms;
use kernel\FormModel;
2024-09-10 12:55:41 +03:00
/**
* @property $parent_id
* @property $icon_file
* @property $icon_font
* @property $label
* @property $url
* @property $status
*/
2024-08-30 16:14:31 +03:00
class CreateMenuForm extends FormModel
{
public function rules(): array
{
return [
'parent_id' => '',
'icon_file' => '',
'icon_font' => '',
'label' => 'required|min-str-len:1|max-str-len:50',
'url' => 'required|min-str-len:1',
'status' => ''
];
}
}