Skip to content

Commit

Permalink
fix: return string uuid/ulid
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafaznv committed Nov 24, 2024
1 parent 021a722 commit d1a0893
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 d1a0893

Please sign in to comment.