Skip to content

Commit e204b23

Browse files
committed
update documentation on logging whatsapp request
1 parent f205f8d commit e204b23

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ You may publish the config file with:
3333
php artisan vendor:publish --tag="crisp-whatsapp-config"
3434
```
3535

36+
You may also publish the migration file if you want to log your whatsapp requests with
37+
38+
```bash
39+
php artisan vendor:publish --tag="crisp-whatsapp-migrations"```
40+
````
41+
42+
And set `CRISP_WHATSAPP_LOG_REQUESTS` in your `.env` file to true
43+
3644
This is the contents of the published config file:
3745
3846
```php
@@ -53,6 +61,9 @@ return [
5361
'to_test_phone' => env('CRISP_WHATSAPP_TO_TEST_PHONE'),
5462

5563
'enable_caching' => env('CRISP_WHATSAPP_ENABLE_CACHE', true),
64+
65+
// if you want to log whatsapp requests, you will need to publish migration if this is true
66+
'log_requests' => env('CRISP_WHATSAPP_LOG_REQUESTS', false),
5667
];
5768
```
5869

config/crisp-whatsapp.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818

1919
'enable_caching' => env('CRISP_WHATSAPP_ENABLE_CACHING', true),
2020

21+
// if you want to log whatsapp requests, you will need to publish migration if this is true
2122
'log_requests' => env('CRISP_WHATSAPP_LOG_REQUESTS', false),
2223
];

0 commit comments

Comments
 (0)