Skip to content

Conversation

@jasonmccreary
Copy link
Contributor

Similar to #35534 and the id() column, this defaults the column name of uuid() to uuid for developer convenience.

Before

$table->uuid('uuid');

After

$table->uuid();

Note: I did not do this for foreignUuid as it uses a column name prefix to establish the related model.

@jasonmccreary
Copy link
Contributor Author

If merged, I'll open a PR for the docs.

@GrahamCampbell GrahamCampbell changed the title Default uuid column name [9.x] Default uuid column name Jan 23, 2021
@taylorotwell taylorotwell merged commit f6640f8 into laravel:master Jan 25, 2021
@jasonmccreary jasonmccreary deleted the default-uuid-name branch March 4, 2021 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants