Skip to content

Commit

Permalink
Merge pull request #30 from mostafaznv/dev
Browse files Browse the repository at this point in the history
fix: return string uuid/ulid
  • Loading branch information
mostafaznv authored Nov 24, 2024
2 parents 127fc26 + d1a0893 commit 06f0209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Actions/GenerateFileIdAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 06f0209

Please sign in to comment.