diff --git a/src/Http/Controllers/WebhookController.php b/src/Http/Controllers/WebhookController.php index 6209cfd..76aeb1d 100644 --- a/src/Http/Controllers/WebhookController.php +++ b/src/Http/Controllers/WebhookController.php @@ -12,7 +12,6 @@ use Signifly\Shopify\Http\Middleware\ValidateWebhook; use Signifly\Shopify\Webhooks\Webhook; - class WebhookController extends Controller { public function __construct() @@ -30,6 +29,7 @@ public function handle(Request $request) return new JsonResponse(); } catch (Exception $e) { Log::error($e->getMessage()); + return new Response('Error handling webhook', 500); } }