From 3ef2bddbc78a7e8c20b0ab10afc1ead5a74e2907 Mon Sep 17 00:00:00 2001 From: Adam Campbell Date: Fri, 2 Dec 2022 10:50:49 -0600 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 52ef390..94fc528 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ Webhooks require an exposed endpoint to POST to. Receiver aims to make this a on { public function store(Request $request) { - Receiver::driver('slack') + return Receiver::driver('slack') ->receive($request) ->ok(); } @@ -103,7 +103,7 @@ class WebhooksController extends Controller { public function store(Request $request, string $driver) { - Receiver::driver($driver) + return Receiver::driver($driver) ->receive($request) ->ok(); } @@ -153,7 +153,7 @@ class WebhooksController extends Controller { public function store(Request $request, string $driver) { - Receiver::driver($driver) + return Receiver::driver($driver) ->receive($request) ->fallback(function(Webhook $webhook) { // Do whatever you like here...