Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

VETO87's avatar

spatie not working after deployment

Hello, in my localhost spatie was working fine after deployment it's not working local.ERROR: `` is not a valid process webhook job class.

in my webhook-client.php 'process_webhook_job' => App\Exceptions\webhookhandler::class,

as you can see it's seems spatie does not recognize my webhook-client.php process_webhook_job even if 'process_webhook_job' => 'blablabla', it will return local.ERROR: `` is not a valid process webhook job class.

0 likes
3 replies
Sinnbeck's avatar

You should fix the classname. They need to be the same in Linux. Windows and Mac are not case sensitive, but Linux is

Like this perhaps?

WebhookHandler
VETO87's avatar

@Sinnbeck then it should return local.ERROR: `App\Exceptions\webhookhandler::class is not a valid process webhook job class. but it's return local.ERROR: `` is not a valid process webhook job class.

that's mean spatie doesn't read my webhook-client.php file and i don't know why :*(

Sinnbeck's avatar

@VETO87 good point :) even though that would be the case, you should still fix the casing (unless your filename + class are also all lowercase for some reason)

did you clear or redo your config?

php artisan config:cache

Please or to participate in this conversation.