laravel
laravel copied to clipboard
primary key uuid => change $keyType
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)
note, since 9.26 I think, laravel has a trait dedicated to uuid