Fix validation of "hidden" checkbox not working

This commit is contained in:
Toby Zerner 2017-07-08 21:36:30 +09:30
parent 49504da31e
commit 99c62ccdb0

View File

@ -21,7 +21,7 @@ class TagValidator extends AbstractValidator
protected $rules = [
'name' => ['required'],
'slug' => ['required', 'unique:tags'],
'isHidden' => ['bool'],
'is_hidden' => ['bool'],
'description' => ['string', 'max:700'],
'color' => ['regex:/^#([a-f0-9]{6}|[a-f0-9]{3})$/i'],
];