You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just ported the HasUniqueIds trait logic from Laravel which allows generating IDs on the application level before persisting to the database, this is useful for when you want to use something like CUID or ULID or Snowflake ID which might not be supported natively by the database system you are running on.
I have implemented UUID, ULID and CUID columns for now but you can use the uniqueIdColumn decorator to implement what is needed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I just ported the HasUniqueIds trait logic from Laravel which allows generating IDs on the application level before persisting to the database, this is useful for when you want to use something like CUID or ULID or Snowflake ID which might not be supported natively by the database system you are running on.
I have implemented UUID, ULID and CUID columns for now but you can use the
uniqueIdColumndecorator to implement what is needed.Hopefully, this gets merged into the Lucid core someday.
Beta Was this translation helpful? Give feedback.
All reactions