菜单添加标签

This commit is contained in:
liu
2026-08-11 10:46:08 +08:00
parent 1890c5882b
commit 1b8a0f2d0b
7 changed files with 36 additions and 1 deletions
@@ -18,6 +18,7 @@ class SysCategoryItemFormRequest extends BaseFormRequest
'title' => 'required|string|max:100',
'image_id' => ['required', 'integer', new Exists(SysFileModel::class, 'id')],
'link' => 'nullable|string|max:500',
'tag' => 'nullable|array',
'status' => 'nullable|integer|in:0,1',
'sort' => 'nullable|integer',
];
@@ -18,6 +18,7 @@ class SysCategoryItemModel extends Model
'status' => 'int',
'sort' => 'int',
'image_id' => 'int',
'tag' => 'array',
];
protected $fillable = [
@@ -25,6 +26,7 @@ class SysCategoryItemModel extends Model
'title',
'image_id',
'link',
'tag',
'status',
'sort',
];