How to access $event name in webhooks
adzay opened this issue · 2 comments
adzay commented
Hi (again),
Webhooks is working well. Thanks!
I would like to save successful webhook calls into the database with the name of the event, url and method. Is it possible to access more than just $event->data?
marcreichel commented
Hi,
I've just release v3.2.0 which adds meta information to the events:
- The full qualified event class name (like
MarcReichel\IGDBLaravel\Events\GameCreated
) ($event->class
) - The URL which handled the webhook (like
https://yourdomain.tld/igdb-webhook/handle/games/create
) ($event->url
) - The method (like
create
) ($event->method
) - The date and time the event was created (as a Carbon instance) (
$event->created_at
)
Just let me know if this is what you needed
adzay commented
Thanks!