Skip to content

Commit 3051be6

Browse files
authored
readme Logging
1 parent 19c76cc commit 3051be6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

readme.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,18 @@ fcm()
147147
])
148148
->send();
149149
```
150+
151+
### Logging
152+
153+
To see the original response from Firebase, call `enableResponseLog()` method before calling the `send()` method.
154+
155+
```php
156+
fcm()
157+
->to($recipients)
158+
// ...
159+
->enableResponseLog()
160+
->send();
161+
162+
```
163+
164+
Then you can check the response log in the file `storage/logs/laravel.log`

0 commit comments

Comments
 (0)