DEV Community

Discussion on: UUIDs in Laravel 7

Collapse
 
tosinibrahim96 profile image
Ibrahim Alausa

Hi Cornel, thanks so much for this. I had an issue though and it was due to the first line in the migration file $table->uuid('id')->primary;. I had to change it to $table->uuid('id')->primary(); to get it working. The primary modifier has brackets

Collapse
 
cverster profile image
Cornel Verster

Hi Ibrahim. Thanks so much for bringing this up, I'll make the required updates.