uuid-rule

UUID validation rule for Laravel

MIT License

Downloads
3.7K
Stars
8

UUID validation rule

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],
]);
Package Rankings
Top 15.26% on Packagist.org
Badges
Extracted from project README
Version License Build Status Total Downloads