/colour

Validate colours.

Primary LanguagePHPApache License 2.0Apache-2.0

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],
]);