Skip to content

Commit 5b0eea4

Browse files
update readme
1 parent fb524ea commit 5b0eea4

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
**Note:** The package follows Laravel's philosophy of being as permissive as possible with PHP versions. Your application's `composer.json` will enforce the minimum PHP version required by your Laravel version (10.x requires PHP 8.1+, 11.x and 12.x require PHP 8.2+).
5959

60-
## Installation:
60+
## Installation
6161

6262
- **Step 1:** You can install the package via composer:
6363

@@ -74,7 +74,7 @@ php artisan migrate
7474

7575
You have successfully added two dedicated database tables, `wallets` and `wallets_logs`, without making any modifications to the `users` table.
7676

77-
- **Step 3:** Publish the wallet types using
77+
- **Step 3:** Publish the wallet types using:
7878

7979
```bash
8080
php artisan vendor:publish --tag="pay-pocket-wallets"
@@ -87,7 +87,14 @@ This command will automatically publish the `pay-pocket.php` config file and als
8787

8888
If updating to version `^2.0.0`, new migration and config files have been added to support the new [Transaction Notes Feature](#transaction-notes-8)
8989

90-
Follow [Step 2](#installation) (publish migrations) and [Step 3](#installation) (publish config) from the Installation section to update your migrations.
90+
Run the following commands to publish the updated migrations and config:
91+
92+
```bash
93+
php artisan vendor:publish --tag="pay-pocket-migrations"
94+
php artisan migrate
95+
php artisan vendor:publish --tag="pay-pocket-wallets"
96+
php artisan vendor:publish --tag="config"
97+
```
9198

9299
## Preparation
93100

@@ -165,7 +172,7 @@ LaravelPayPocket::deposit($user, 'wallet_1', 123.45);
165172

166173
Note: `wallet_1` and `wallet_2` must already be defined in the `WalletEnums`.
167174

168-
#### Transaction Info ([#8][i8])
175+
#### Transaction Notes ([#8][i8])
169176

170177
When you need to add descriptions for a specific transaction, the `$notes` parameter enables you to provide details explaining the reason behind the transaction.
171178

@@ -301,10 +308,9 @@ composer install
301308

302309
composer test
303310

311+
# Or
304312

305-
// Or
306-
307-
./vender/bin/pest
313+
./vendor/bin/pest
308314
```
309315

310316
## Changelog

0 commit comments

Comments
 (0)