mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 14:53:03 +08:00
commit
32af5838b2
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
|
@ -19,6 +19,9 @@ class TagValidator extends AbstractValidator
|
|||
*/
|
||||
protected $rules = [
|
||||
'name' => ['required'],
|
||||
'slug' => ['required', 'unique:tags']
|
||||
'slug' => ['required', 'unique:tags'],
|
||||
'isHidden' => ['bool'],
|
||||
'description' => ['text|max:700'],
|
||||
'color' => ['regex:^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$'],
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user