rap2hpoutre / uuid-rule

UUID validation rule for Laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UUID validation rule

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

About

UUID validation rule for Laravel

License:MIT License


Languages

Language:PHP 100.0%