Closed ctf0 closed 5 years ago
This is already documented in the readme.
Note: this package explicitly does not disable auto-incrementing on your Eloquent models. In terms of database indexing, it is generally more efficient to use auto-incrementing integers for your internal querying. Indexing your uuid column will make lookups against that column fast, without impacting queries between related models.
following the docs along with setting the column to
$table->uuid('id')->primary();
was giving error ofInvalidArgumentException : $bytes string should contain 16 characters.
so to fix it we needto be added as well