Skip to content

[6.x] Fix default: current on Users fieldtype and Eloquent/Postgres#14724

Open
joshuablum wants to merge 2 commits into
6.xfrom
fix-eloquent-default-current-users-fieldtype
Open

[6.x] Fix default: current on Users fieldtype and Eloquent/Postgres#14724
joshuablum wants to merge 2 commits into
6.xfrom
fix-eloquent-default-current-users-fieldtype

Conversation

@joshuablum
Copy link
Copy Markdown
Member

Normalizes the default: current config in the augment method so it resolves to User::current()?->id() before actually hitting the query. Fixes a potential database error when using Eloquent users with Postgres and UUIDs.

Closes #14723.

@joshuablum joshuablum changed the title Fix default: current on Users fieldtype and Eloquent/Postgres [6.x] Fix default: current on Users fieldtype and Eloquent/Postgres May 25, 2026
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

Successfully merging this pull request may close these issues.

Users fieldtype with default: current errors on Eloquent, Postgres, and UUIDs

1 participant