Models using string
typed ID (e.q. UUIDs, ULIDS), must set the $keyType
var to 'string'
.
/**
* The "type" of the primary key ID.
*
* @var string
*/
protected $keyType = 'int';
Strangely enough, Laravel doesn't raises any alert and your application will still be functionnal, but it will greatly impact your performances.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community