Skip to content

newridetech/uuid-rule

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

UUID validation rule for Laravel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%