Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UUID v7 support / ULID support? #119

Open
atymic opened this issue Oct 6, 2022 · 9 comments
Open

UUID v7 support / ULID support? #119

atymic opened this issue Oct 6, 2022 · 9 comments

Comments

@atymic
Copy link
Contributor

atymic commented Oct 6, 2022

Thoughts on adding v7/ulid support?
https://uuid.ramsey.dev/en/stable/rfc4122/version7.html?highlight=encoding#

Happy to PR :)

@michaeldyrynda
Copy link
Owner

Happy to review a PR, but also considering that UUID/ULID support is coming to Laravel, need to consider what versions of Laravel we support into the future as well.

@atymic
Copy link
Contributor Author

atymic commented Oct 6, 2022

Ahh ok, do you have a link to that ticket?
We're going to use v7 instead of the laravel/ramsey specific v4 ordered as its an official RFC

@michaeldyrynda
Copy link
Owner

This is the PR that introduced the functionality, so it's available in Laravel 9.x.

Laravel 10.x will use UUIDv7 by default.

@AidasK
Copy link

AidasK commented Apr 8, 2023

What about ulid? Uuid are great, but ulids are more compact ant url friendly. Can we create ulid specific mr?

@atymic
Copy link
Contributor Author

atymic commented May 8, 2023

PR'd #124

Looks like laravel reverted v7 becoming default due to BC breaks.

@joelmellon
Copy link
Contributor

Laravel 9.x has ULID support as well. https://laravel.com/docs/9.x/migrations#column-method-ulid

Methods are:

  • foreignUlid
  • nullableUlidMorphs
  • ulidMorphs
  • ulid

@atymic
Copy link
Contributor Author

atymic commented Sep 12, 2023

@michaeldyrynda will you accept a ULID PR as well?

@atymic
Copy link
Contributor Author

atymic commented Sep 13, 2023

PR'd #127

@billriess
Copy link

@michaeldyrynda I know this is a little old but Laravel did revert the PR and decided not to use UUIDv7 by default. It would be nice if we could set a config to choose the default UUID instead of having to create a trait to override the default on every model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants