Update TagValidator.php

This commit is contained in:
jwdeitch 2016-01-25 07:58:22 -05:00
parent 245270e629
commit 91eb39d615

View File

@ -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})$'],
];
}