Replies: 1 comment
-
You would probably want ->unique() to add a unique index that enforces no duplicate slugs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was surprised to find that there was no emphasis on indexing the slug column in the example migrations, so I thought maybe I am missing something? What are some good practices in creating the table, should I add ->index() to the schema creating in the migration?
Beta Was this translation helpful? Give feedback.
All reactions