Skip to content

Commit cf22c50

Browse files
committed
Refresh the docs
1 parent 1d01bf8 commit cf22c50

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
All notable changes to `laravel-mailgun-webhooks` will be documented in this file
44

5+
## 9.1.0 - 2022-01-26
6+
7+
- Drop support for PHP 7
8+
- Upgrade spatie/laravel-webhook-client to version 2.0
9+
- Test Laravel 9 integration
10+
11+
## 9.0.0 - 2022-01-20
12+
13+
- Add support for Laravel 9
14+
515
## 1.1.0 - 2020-03-04
616

717
- add support for Laravel 7

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ This package will not handle what should be done after the webhook request has b
1313

1414
Before using this package we highly recommend reading [the entire documentation on webhooks over at Mailgun](https://documentation.mailgun.com/en/latest/api-webhooks.html).
1515

16-
This package is an almost line-to-line adapted copy of absolutely amazing [spatie/laravel-stripe-webhooks](https://github.com/spatie/laravel-stripe-webhooks)
16+
This package is an adapted copy of absolutely amazing [spatie/laravel-stripe-webhooks](https://github.com/spatie/laravel-stripe-webhooks)
17+
18+
## Upgrade
19+
20+
If you are upgrading from previous version, please note that spatie/laravel-webhook-client has been upgraded to ^3.0 - which adds an extra field into the webhooks table. Read [upgrading instructions](https://github.com/spatie/laravel-webhook-client/blob/main/UPGRADING.md) for more details.
1721

1822
## Installation
1923

@@ -47,6 +51,9 @@ return [
4751
*
4852
* You can find a list of Mailgun webhook types here:
4953
* https://documentation.mailgun.com/en/latest/api-webhooks.html#webhooks.
54+
*
55+
* The package will automatically convert the keys to lowercase, but you should
56+
* be congnisant of the fact that array keys are case sensitive
5057
*/
5158
'jobs' => [
5259
// 'delivered' => \BinaryCats\MailgunWebhooks\Jobs\HandleDelivered::class,
@@ -112,6 +119,8 @@ If something goes wrong during the webhook request the thrown exception will be
112119

113120
There are two ways this package enables you to handle webhook requests: you can opt to queue a job or listen to the events the package will fire.
114121

122+
**Due to the apparent differences between MailGun sandbox and production environment event casing, the package will ALWAYS cast mailgun events to lowercase - so your configured keys must be lowercase, too**
123+
115124
**The package does not handle legacy webhooks, as they have a different schema.** Let me know if this is something that is needed.
116125

117126
### Handling webhook requests using jobs

0 commit comments

Comments
 (0)