Skip to content

Commit 1c23b8b

Browse files
committed
Update README.md
1 parent 4ca54ac commit 1c23b8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ class HandleDelivered implements ShouldQueue
144144

145145
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.
146146

147+
Just keep in mind that mailgun places both `signature` and `event-data` into response body.
148+
147149
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.
148150

149151
```php
@@ -183,7 +185,7 @@ Here's an example of such a listener:
183185
namespace App\Listeners;
184186

185187
use Illuminate\Contracts\Queue\ShouldQueue;
186-
use BinaryCats\MailgunWebhooks\WebhookCall;
188+
use Spatie\WebhookClient\Models\WebhookCall;
187189

188190
class DelieveredSource implements ShouldQueue
189191
{

0 commit comments

Comments
 (0)