mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 21:11:55 +08:00
Update TagValidator.php
This commit is contained in:
parent
245270e629
commit
91eb39d615
|
@ -18,10 +18,10 @@ class TagValidator extends AbstractValidator
|
|||
* {@inheritdoc}
|
||||
*/
|
||||
protected $rules = [
|
||||
'name' => [ 'required' ],
|
||||
'slug' => [ 'required', 'unique:tags' ],
|
||||
'isHidden' => [ 'bool' ],
|
||||
'description' => [ 'text|max:700' ],
|
||||
'color' => [ 'regex:^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$' ],
|
||||
'name' => ['required'],
|
||||
'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