Validate colours

1.5.0 2020-09-16 14:18 UTC

This package is auto-updated.

Last update: 2020-10-16 14:34:12 UTC


README

Validates colours, currently supporting hex codes only.

68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d76616c69646174696f6e2d72756c65732f636f6c6f75722e7376673f7374796c653d666c61742d737175617265 68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d76616c69646174696f6e2d72756c65732f636f6c6f75722e7376673f7374796c653d666c61742d737175617265 68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d76616c69646174696f6e2d72756c65732f636f6c6f75722e7376673f7374796c653d666c61742d737175617265 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c61726176656c2d76616c69646174696f6e2d72756c65732f636f6c6f75722e7376673f7374796c653d666c61742d737175617265

Installation

composer require laravel-validation-rules/colour

Usage

use LVR\Colour\Hex;

$request->validate([
    'colour' => ['required', new Hex],
]);