rap2hpoutre/uuid-rule

add a UUID validation rule

v0.2.0 2018-11-05 08:23 UTC

This package is auto-updated.

Last update: 2024-10-25 18:25:48 UTC


README

Version License Build Status Total Downloads

What?

Add a UUID validation to your Laravel 5.5+ Validation Rules

Install

Install with composer:

composer require rap2hpoutre/uuid-rule

Usage

In your controllers, add the validation with your other rules:

$request->validate([
    'email' => 'required|string|email'
    'uuid' => ['required', new \Rap2hpoutre\UuidRule\UuidRule],
]);