Skip to content
Discussion options

You must be logged in to vote

The problem was in the Eloquent model, the primary key had to be defined as a 'string' as stated in the Laravel documentation: https://laravel.com/docs/9.x/eloquent#primary-keys

Simply adding protected $keyType = 'string'; fixed the problem, no other change on our codebase was needed.

Thanks for your time!

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jcadsmurai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5509 on May 05, 2023 11:52.