From 3051be6396d39385d8c89e8e8e8a9ccb7e0f057b Mon Sep 17 00:00:00 2001 From: Erlang Parasu Date: Thu, 30 Jun 2022 12:09:08 +0800 Subject: [PATCH] readme Logging --- readme.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/readme.md b/readme.md index b19db85..260940a 100644 --- a/readme.md +++ b/readme.md @@ -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`