From 91a1fbf466014278ec2f7664b1c0fb93bb91dae1 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Mon, 17 Aug 2020 14:25:19 +0100 Subject: [PATCH] App\Http\Controllers\WebhookController is meant to be used via __invoke (#6251) --- cashier-paddle.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cashier-paddle.md b/cashier-paddle.md index 80c3cbdb914..1c0fabf89f2 100644 --- a/cashier-paddle.md +++ b/cashier-paddle.md @@ -768,7 +768,7 @@ Next, define a route to your Cashier controller within your `routes/web.php` fil Route::post( 'paddle/webhook', - '\App\Http\Controllers\WebhookController@handleWebhook' + '\App\Http\Controllers\WebhookController' ); Cashier emits a `Laravel\Paddle\Events\WebhookReceived` event when a webhook is received, and a `Laravel\Paddle\Events\WebhookHandled` event when a webhook was handled. Both events contain the full payload of the Paddle webhook.