Comienzo de api de canales de venta

This commit is contained in:
2021-06-09 18:15:08 -04:00
parent 6583e8faaf
commit b3e4fe20cf
8 changed files with 300 additions and 9 deletions

View 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;
}
}