Colour
Validates colours, currently supporting hex codes only.
Installation
composer require laravel-validation-rules/colour
Usage
use LVR\Colour\Hex;
$request->validate([
'colour' => ['required', new Hex],
]);
Validates colours, currently supporting hex codes only.
composer require laravel-validation-rules/colour
use LVR\Colour\Hex;
$request->validate([
'colour' => ['required', new Hex],
]);