File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff 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
109108If 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-
114111namespace App\Jobs\LobWebhooks;
115112
116113use 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 = [
176173Here's an example of such a listener:
177174
178175``` php
179- <?php
180-
181176namespace App\Listeners;
182177
183178use Illuminate\Contracts\Queue\ShouldQueue;
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change @@ -34,5 +34,6 @@ public function __construct(WebhookCall $webhookCall)
3434 */
3535 public function handle ()
3636 {
37+ // do the needed.
3738 }
3839}
You can’t perform that action at this time.
0 commit comments