Skip to content

Commit

Permalink
readme Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
erlangparasu authored Jun 30, 2022
1 parent 19c76cc commit 3051be6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,18 @@ fcm()
])
->send();
```

### Logging

To see the original response from Firebase, call `enableResponseLog()` method before calling the `send()` method.

```php
fcm()
->to($recipients)
// ...
->enableResponseLog()
->send();

```

Then you can check the response log in the file `storage/logs/laravel.log`

0 comments on commit 3051be6

Please sign in to comment.