From 7f246973f8a031a11b1f433944acf611dca5cf34 Mon Sep 17 00:00:00 2001 From: Alex Vanderbist Date: Fri, 8 Apr 2022 00:50:07 +0200 Subject: [PATCH] Change `WebhookConfigRepository` instance to `scoped` (Octane support) --- src/WebhookClientServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebhookClientServiceProvider.php b/src/WebhookClientServiceProvider.php index bd128c2..9d4dd1b 100644 --- a/src/WebhookClientServiceProvider.php +++ b/src/WebhookClientServiceProvider.php @@ -27,7 +27,7 @@ public function boot() Route::macro('webhooks', fn (string $url, string $name = 'default') => Route::post($url, '\Spatie\WebhookClient\WebhookController')->name("webhook-client-{$name}")); - $this->app->singleton(WebhookConfigRepository::class, function () { + $this->app->scoped(WebhookConfigRepository::class, function () { $configRepository = new WebhookConfigRepository(); collect(config('webhook-client.configs'))