laravel icon indicating copy to clipboard operation
laravel copied to clipboard

primary key uuid => change $keyType

Open Grummfy opened this issue 2 years ago • 1 comments

Hello, when the primary key is a uuid (string) we need to add protected $keyType = 'string'; in the model

If possible add a trait in the usage too (custom value)

Grummfy avatar Mar 04 '22 11:03 Grummfy

note, since 9.26 I think, laravel has a trait dedicated to uuid

Grummfy avatar Sep 23 '22 08:09 Grummfy