Why do we have a $keyType in Eloquent while we always have to use at least $cast and $primaryKey if we want to make a string-based primary key? #34953
Unanswered
ProteanCode
asked this question in
Q&A
Replies: 1 comment
-
My guess is that it does implicit things like these two: public $incrementing = false;
protected $casts = [
'id' => 'string', // primary key
]; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As the title says.
Beta Was this translation helpful? Give feedback.
All reactions