Skip to content

Commit cbc4085

Browse files
authored
Merge pull request #6 from binary-cats/support-laravel-7
Add support to Laravel 7.0
2 parents 0d17ef8 + 594daf0 commit cbc4085

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ return [
4242
* https://lob.com/docs#all_event_types
4343
*/
4444
'jobs' => [
45-
// Here is an example
46-
// 'letter.created' => \BinaryCats\LobWebhooks\Jobs\HandleLetter_Created::class,
45+
// 'letter_delivered' => \BinaryCats\LobWebhooks\Jobs\HandleDelivered::class,
4746
],
4847

4948
/*
@@ -109,8 +108,6 @@ There are two ways this package enables you to handle webhook requests: you can
109108
If you want to do something when a specific event type comes in you can define a job that does the work. Here's an example of such a job:
110109

111110
```php
112-
<?php
113-
114111
namespace App\Jobs\LobWebhooks;
115112

116113
use Illuminate\Bus\Queueable;
@@ -148,7 +145,7 @@ After having created your job you must register it at the `jobs` array in the `l
148145
// config/lob-webhooks.php
149146

150147
'jobs' => [
151-
'letter.created' => \App\Jobs\LobWebhooks\HandleLetter_Created::class,
148+
'letter_created' => \App\Jobs\Lob\Webhooks\HandleLetterCreatedJob::class,
152149
],
153150
```
154151

@@ -176,8 +173,6 @@ protected $listen = [
176173
Here's an example of such a listener:
177174

178175
```php
179-
<?php
180-
181176
namespace App\Listeners;
182177

183178
use Illuminate\Contracts\Queue\ShouldQueue;

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
],
2121
"require": {
2222
"php": "^7.2",
23-
"illuminate/support": "~5.8.0|^6.0",
23+
"illuminate/support": "~5.8.0|^6.0|^7.0",
2424
"spatie/laravel-webhook-client": "^2.0"
2525
},
2626
"require-dev": {
27-
"orchestra/testbench": "~3.8.0|^4.0",
28-
"phpunit/phpunit": "^8.2"
27+
"orchestra/testbench": "~3.8.0|^4.0|^5.0",
28+
"phpunit/phpunit": "^8.2|^9.0"
2929
},
3030
"autoload": {
3131
"psr-4": {

src/Jobs/HandleDelivered.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ public function __construct(WebhookCall $webhookCall)
3434
*/
3535
public function handle()
3636
{
37+
// do the needed.
3738
}
3839
}

0 commit comments

Comments
 (0)