Closed kartman5 closed 2 years ago
That namespace is wrong. Use\Spatie\WebhookClient\Http\Controllers\WebhookController
I know it's a namespace error, but this error comes after updating in laravel 9.
Above error message comes when doing a composer update and all other PHP artisan commands.
The error is coming because of this line
Package should define controller like
return Route::post($url, '\Spatie\WebhookClient\Http\Controllers\WebhookController')->name("webhook-client-{$name}");
otherwise laravel will unable to find the controller when the macro is inside a group like
Route::group(['namespace'=> 'MyPath\Folder'], function() {
Route::webhook("my-webhhok");
});
@freekmurze Would you accept a PR ?
Similar PR was send https://github.com/spatie/laravel-stripe-webhooks/pull/100
@ankurk91 Yup, send a PR 👍
Hi,
After upgrading this package to the 3.1.0 package not working properly.
This throw
WebhookController was not found
error.How can I resolve this issue?
Thanks.