Skip to content

Commit a9c30b7

Browse files
authored
Merge pull request #844 from bavix/uuid-docs
add docs bavix/laravel-wallet-uuid
2 parents 0d6a79e + e7667d5 commit a9c30b7

File tree

2 files changed

+34
-6
lines changed

2 files changed

+34
-6
lines changed

docs/_sidebar.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
- [Batch transactions](batch-transactions)
3636
- [Batch transfers](batch-transfers)
3737

38-
- Nova
39-
40-
- [Change of balance](nova-action)
41-
4238
- Purchases
4339

4440
- [Payment](payment)
@@ -54,6 +50,11 @@
5450
- [Race condition](race-condition)
5551
- [Atomic Service](atomic-service)
5652

53+
- Additions
54+
55+
- [Wallet Swap](laravel-wallet-swap)
56+
- [Wallet UUID](laravel-wallet-uuid)
57+
5758
- Events
5859

5960
- [BalanceUpdatedEvent](balance-updated-event)
@@ -65,6 +66,6 @@
6566

6667
- [Create Wallet](command-create-wallet)
6768

68-
- Additions
69+
- Nova
6970

70-
- [Wallet Swap](laravel-wallet-swap)
71+
- [Change of balance](nova-action)

docs/laravel-wallet-uuid.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Laravel Wallet UUID
2+
3+
> Using uuid greatly reduces package performance. We recommend using int.
4+
5+
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.
6+
7+
To simplify the process, you can use a ready-made package.
8+
9+
> Attention! It will not work to use UUID instead of ID in wallet models; there is a special uuid field for this.
10+
11+
## Composer
12+
13+
The recommended installation method is using [Composer](https://getcomposer.org/).
14+
15+
In your project root just run:
16+
17+
```bash
18+
composer req bavix/laravel-wallet-uuid
19+
```
20+
21+
Now you need to migrate!
22+
23+
After migration, you can use the UUID in your models.
24+
25+
You can find implementation examples in the package tests: https://github.com/bavix/laravel-wallet-uuid/tree/master/tests
26+
27+
It worked!

0 commit comments

Comments
 (0)