Skip to content

Commit

Permalink
update laravel-wallet-uuid.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Jan 13, 2024
1 parent b1bea45 commit e7667d5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/laravel-wallet-uuid.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
## Laravel Wallet UUID

> Using uuid greatly reduces package performance. We recommend using int.
Often there is a need to store an identifier in uuid/ulid. Since version 9.0 laravel-wallet supports string identifiers, you only need to perform the migration.

To simplify the process, you can use a ready-made package.

> Attention! It will not work to use UUID instead of ID in wallet models; there is a special uuid field for this.
## Composer

The recommended installation method is using [Composer](https://getcomposer.org/).
Expand All @@ -13,6 +21,7 @@ composer req bavix/laravel-wallet-uuid
Now you need to migrate!

After migration, you can use the UUID in your models.
Attention! It will not work to use UUID instead of ID in wallet models; there is a special uuid field for this.

You can find implementation examples in the package tests: https://github.com/bavix/laravel-wallet-uuid/tree/master/tests

It worked!

0 comments on commit e7667d5

Please sign in to comment.