Skip to content

HexColor#

This validation rules checks if the posted input is a valid Hexadecimal color code.

It will accept any input either with or without the #-sign and 3 or 6 character inputs.

Class#

LaravelExtendedValidation\Rules\Color\HexColor

Accepted input examples are:

- #333
- #ff00ff
- ff00ff

Constructor argument(s)#

none