Validate colours
270,135
34
2
Package Data
Maintainer Username: clarkeash
Maintainer Contact: me@ashleyclarke.me (Ashley Clarke)
Package Create Date: 2017-09-09
Package Last Update: 2024-03-23
Language: PHP
License: Apache-2.0
Last Refreshed: 2026-02-09 15:31:57
Package Statistics
Total Downloads: 270,135
Monthly Downloads: 1,313
Daily Downloads: 63
Total Stars: 34
Total Watchers: 2
Total Forks: 14
Total Open Issues: 3

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