Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ return [
* https://lob.com/docs#all_event_types
*/
'jobs' => [
// Here is an example
// 'letter.created' => \BinaryCats\LobWebhooks\Jobs\HandleLetter_Created::class,
// 'letter_delivered' => \BinaryCats\LobWebhooks\Jobs\HandleDelivered::class,
],

/*
Expand Down Expand Up @@ -109,8 +108,6 @@ There are two ways this package enables you to handle webhook requests: you can
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:

```php
<?php

namespace App\Jobs\LobWebhooks;

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

'jobs' => [
'letter.created' => \App\Jobs\LobWebhooks\HandleLetter_Created::class,
'letter_created' => \App\Jobs\Lob\Webhooks\HandleLetterCreatedJob::class,
],
```

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

```php
<?php

namespace App\Listeners;

use Illuminate\Contracts\Queue\ShouldQueue;
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
],
"require": {
"php": "^7.2",
"illuminate/support": "~5.8.0|^6.0",
"illuminate/support": "~5.8.0|^6.0|^7.0",
"spatie/laravel-webhook-client": "^2.0"
},
"require-dev": {
"orchestra/testbench": "~3.8.0|^4.0",
"phpunit/phpunit": "^8.2"
"orchestra/testbench": "~3.8.0|^4.0|^5.0",
"phpunit/phpunit": "^8.2|^9.0"
},
"autoload": {
"psr-4": {
Expand Down
1 change: 1 addition & 0 deletions src/Jobs/HandleDelivered.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ public function __construct(WebhookCall $webhookCall)
*/
public function handle()
{
// do the needed.
}
}