Validate colours

1.7.0 2023-02-15 15:19 UTC

README

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