Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| Schema::create('personal_access_tokens', function (Blueprint $table) { | ||
| $table->id(); | ||
| $table->morphs('tokenable'); |
There was a problem hiding this comment.
Use UUID morphs for Sanctum tokens
The personal_access_tokens migration defines tokenable_id via $table->morphs('tokenable'), which creates unsignedBigInteger columns. At the same time your user model uses uuid('id')->primary(), so issuing a Sanctum token will attempt to write a UUID string into an integer column and fail with a SQL type mismatch. Swap to $table->uuidMorphs('tokenable') (or stop using UUID primary keys) so token creation works.
Useful? React with 👍 / 👎.
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_690959059f908325b9c52384a81df6bf