Couldn't install #169
Unanswered
Kodekloner
asked this question in
Q&A
Replies: 1 comment
-
I noticed the Laravel version am using don't support |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Error
Call to undefined method Illuminate\Foundation\Application::scoped()
at vendor/spatie/laravel-webhook-client/src/WebhookClientServiceProvider.php:30
26▕ }
27▕
28▕ Route::macro('webhooks', fn (string $url, string $name = 'default') => Route::post($url, '\Spatie\WebhookClient\WebhookController')->name("webhook-client-{$name}"));
29▕
➜ 30▕ $this->app->scoped(WebhookConfigRepository::class, function () {
31▕ $configRepository = new WebhookConfigRepository();
32▕
33▕ collect(config('webhook-client.configs'))
34▕ ->map(fn (array $config) => new WebhookConfig($config))
Beta Was this translation helpful? Give feedback.
All reactions