I´ve got the error message Class \"Spatie\WebhookClient\ProcessWebhookJob\" not found at ...\app\Handler\WebhookHandler.php:7.
WebhookHandler.php
<?php
namespace App\Handler;
use Spatie\WebhookClient\Jobs\ProcessWebhookJob;
class WebhookHandler extends ProcessWebhookJob
{
public function handle()
{
//...
}
}
I´ve got the error message Class \"Spatie\WebhookClient\ProcessWebhookJob\" not found at ...\app\Handler\WebhookHandler.php:7.
WebhookHandler.php
How you can see, I´ve changed the path to Spatie\WebhookClient\Jobs\ProcessWebhookJob, because that is where the file is actually located. (https://github.com/spatie/laravel-webhook-client/tree/main/src/Jobs)
Description from the documentation: "A valid job is any class that extends Spatie\WebhookClient\ProcessWebhookJob and has a handle method."
Maybe it should be changed in the documentation.
And thank you for this package!