Skip to content

Commit a6f3add

Browse files
committed
docs
1 parent 62743e0 commit a6f3add

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,18 @@ class DocumentGenerator
357357
}
358358
```
359359

360+
## Store logs
361+
362+
Sometimes you may want to store simple logs (for instance when you send some API requests from your app, you may want to store the payload):
363+
364+
```php
365+
$payload = [...];
366+
367+
devLog('Called Fedex API with:', $payload)
368+
```
369+
370+
Now you will have an entry in your database table with the payload and the associated name.
371+
360372
## Testing
361373

362374
``` bash

0 commit comments

Comments
 (0)