mirror of
https://github.com/flarum/framework.git
synced 2025-02-28 11:36:41 +08:00
Update TagValidator.php
This commit is contained in:
parent
245270e629
commit
91eb39d615
@ -18,10 +18,10 @@ class TagValidator extends AbstractValidator
|
|||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
protected $rules = [
|
protected $rules = [
|
||||||
'name' => [ 'required' ],
|
'name' => ['required'],
|
||||||
'slug' => [ 'required', 'unique:tags' ],
|
'slug' => ['required', 'unique:tags'],
|
||||||
'isHidden' => [ 'bool' ],
|
'isHidden' => ['bool'],
|
||||||
'description' => [ 'text|max:700' ],
|
'description' => ['text|max:700'],
|
||||||
'color' => [ 'regex:^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$' ],
|
'color' => ['regex:^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user