From d1a08937584f37a6222675d0a82f713272548a13 Mon Sep 17 00:00:00 2001 From: mostafaznv Date: Sun, 24 Nov 2024 12:21:58 +0330 Subject: [PATCH] fix: return string uuid/ulid --- src/Actions/GenerateFileIdAction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Actions/GenerateFileIdAction.php b/src/Actions/GenerateFileIdAction.php index 0b37baf..1ac217f 100644 --- a/src/Actions/GenerateFileIdAction.php +++ b/src/Actions/GenerateFileIdAction.php @@ -29,8 +29,8 @@ public function run(): string } return match ($this->method) { - LaruploadSecureIdsMethod::ULID => Str::ulid(), - LaruploadSecureIdsMethod::UUID => Str::uuid(), + LaruploadSecureIdsMethod::ULID => Str::ulid()->toBase32(), + LaruploadSecureIdsMethod::UUID => Str::uuid()->toString(), LaruploadSecureIdsMethod::HASHID => $this->hashid(), default => $this->model->id, };