rap2hpoutre/uuid-rule
add a UUID validation rule
3,676
8
| Install | |
|---|---|
composer require rap2hpoutre/uuid-rule |
|
| Latest Version: | v0.2.0 |
| PHP: | ^7.0 |
| License: | MIT |
| Last Updated: | Feb 6, 2021 |
| Links: | GitHub · Packagist |
Maintainer: rap2hpoutre
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],
]);
Related Packages
mookofe/tail
RabbitMQ and PHP client for Laravel and Lumen that allows you to add and listen...
53,042
52