Skip to content

Commit

Permalink
fix additions
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Jun 22, 2024
1 parent 8216ad2 commit a3c4c63
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 7 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ export default defineConfig({
{ text: 'Create Wallet', link: '/guide/cqrs/create-wallet' },
]
},
{
text: 'Additions',
items: [
{ text: 'Wallet Swap', link: '/guide/additions/swap' },
{ text: 'Support UUID', link: '/guide/additions/uuid' },
]
},
],

socialLinks: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Laravel Wallet Swap
# Laravel Wallet Swap

## Composer

Expand All @@ -10,7 +10,7 @@ In your project root just run:
composer req bavix/laravel-wallet-swap
```

### User model
## User model
We need a simple model with the ability to work multi-wallets.

```php
Expand All @@ -24,7 +24,7 @@ class User extends Model implements Wallet
}
```

### Simple example
## Simple example
Let's create wallets with currency:
```php
$usd = $user->createWallet([
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Laravel Wallet UUID
# Laravel Wallet UUID

> Using uuid greatly reduces package performance. We recommend using int.
Expand Down
6 changes: 0 additions & 6 deletions docs/guide/introduction/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,16 @@

Replace `::with('balance')` to `::with('wallet')`

---

## 2.1.x → 2.2.x

Replace `CanBePaid` to `CanPay`.

Replace `CanBePaidFloat` to `CanPayFloat`.

---

## 2.2.x → 2.4.x

Replace `calculateBalance` to `refreshBalance`

---

## 2.4.x → 3.0.x

Replace path `bavix.wallet::transaction` to `Bavix\Wallet\Models\Transaction::class`
Expand Down

0 comments on commit a3c4c63

Please sign in to comment.