Error after Laravel 9 Upgrade #142
-
Invalid route action: [App\Http\Controllers\Spatie\WebhookClient\Http\Controllers\WebhookController]. at C:\laragon\www***\vendor\laravel\framework\src\Illuminate\Routing\RouteAction.php:92 1 C:\laragon\www***\vendor\laravel\framework\src\Illuminate\Routing\RouteAction.php:47 2 C:\laragon\www***\vendor\laravel\framework\src\Illuminate\Routing\Route.php:190 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi, Did you find a workaround? Thanks |
Beta Was this translation helpful? Give feedback.
-
The workaround I found was to set up normal POST or GET routes that call the web hook controller.
…Sent from my iPhone
On Jun 23, 2022, at 3:48 PM, pocketnest-erik ***@***.***> wrote:
Need this solution as well.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
You just need to change the namespace for the webhook routes. For example
This way it is working for me. Further you can do |
Beta Was this translation helpful? Give feedback.
You just need to change the namespace for the webhook routes. For example
Route::group(['prefix' => 'v1/webhook', 'namespace' => '\Spatie\WebhookClient\Http\Controllers'], function () { Route::webhooks('some-route'); });
This way it is working for me. Further you can do
php artisan route:list
to check if the webhook route is added successfully.