Validate colours
264,603
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: 2025-10-27 03:04:00
Package Statistics
Total Downloads: 264,603
Monthly Downloads: 1,831
Daily Downloads: 20
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],
]);