Comienzo de api de canales de venta
This commit is contained in:
12
backend/app/Services/UuidService.php
Normal file
12
backend/app/Services/UuidService.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class UuidService extends ServiceProvider {
|
||||
public function is_valid(string $uuid) {
|
||||
$regex = '/^[a-f\d]{8}(-[a-f\d]{4}){4}[a-f\d]{8}$/i';
|
||||
return preg_match($regex, $uuid) === 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user