Skip to content

Commit

Permalink
Update notification.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Nov 17, 2024
1 parent aa527d7 commit 6d2df5a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,23 @@ You don't need to worry about updating refresh_token, and you can use it just by
BLUESKY_IDENTIFIER=
BLUESKY_APP_PASSWORD=
```

## Checking notification results

Just like normal Laravel usage, you can check the response after the notification with the `NotificationSent` event.

```php
use Illuminate\Notifications\Events\NotificationSent;
use Illuminate\Http\Client\Response;

class Listener
{
public function handle(NotificationSent $event): void
{
// $event->channel BlueskyChannel
// $event->notifiable
// $event->notification
// $event->response null|Response
}
}
```

0 comments on commit 6d2df5a

Please sign in to comment.