From 1c23b8b1fdcd6ed2facf4a2421d56f98b0e2a9c0 Mon Sep 17 00:00:00 2001 From: Cyrill Kalita Date: Sat, 1 Feb 2020 13:57:04 -0600 Subject: [PATCH] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8757abf..c30eda1 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,8 @@ class HandleDelivered implements ShouldQueue Spatie highly recommends that you make this job queueable, because this will minimize the response time of the webhook requests. This allows you to handle more Mailgun webhook requests and avoid timeouts. +Just keep in mind that mailgun places both `signature` and `event-data` into response body. + After having created your job you must register it at the `jobs` array in the `mailgun-webhooks.php` config file. The key should be the name of [mailgun event type](https://documentation.mailgun.com/en/latest/api-webhooks.html) where but with the `.` replaced by `_`. The value should be the fully qualified classname. ```php @@ -183,7 +185,7 @@ Here's an example of such a listener: namespace App\Listeners; use Illuminate\Contracts\Queue\ShouldQueue; -use BinaryCats\MailgunWebhooks\WebhookCall; +use Spatie\WebhookClient\Models\WebhookCall; class DelieveredSource implements ShouldQueue {