New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

laravel-validation-rules/colour

Validate colours
307,642 33
Install
composer require laravel-validation-rules/colour
Latest Version:1.7.0
Laravel:5 – 10
License:Apache-2.0
Last Updated:Mar 23, 2024
Links: GitHub  ·  Packagist
Maintainer: clarkeash

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

Related Packages

claraleigh/naughty-username

Validate that a username is not a naughty one

24,348 0
cohensive/validation

Extra functionality for Laravel 5 Validator.

13,938 14
jedrzej/validator-extended-syntax

Laravel 4/5 package that adds validator negation to Laravel's validation module

11,595 3
shin1x1/laravel-validator-builder

Laravel 4 Validator builder

7,436 2
digitonic/validation

A Laravel custom validation package with some out of the box validators.

2,526 2

Version History

Version Released Laravel License
1.7.0 ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0 Apache-2.0
1.6.0 ^5.5|^6.0|^7.0|^8.0|^9.0 Apache-2.0
1.5.0 ^5.5|^6.0|^7.0|^8.0 Apache-2.0
1.4.0 ^5.5|^6.0|^7.0|^8.0 Apache-2.0
1.3.0 ^5.5|^6.0|^7.0 Apache-2.0