DEV Community


Discussion on: UUIDs in Laravel 7

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

cverster profile image
Cornel Verster Author

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