From ca26288b94f07eca077819144e8a3362f199e739 Mon Sep 17 00:00:00 2001 From: hedii Date: Thu, 8 Apr 2021 09:36:12 +0200 Subject: [PATCH] Prepare for Laravel Octane --- src/RecaptchaServiceProvider.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/RecaptchaServiceProvider.php b/src/RecaptchaServiceProvider.php index f255d99..554ef15 100644 --- a/src/RecaptchaServiceProvider.php +++ b/src/RecaptchaServiceProvider.php @@ -15,12 +15,12 @@ public function register(): void { $this->mergeConfigFrom(__DIR__ . '/../config/recaptcha.php', 'recaptcha'); - $this->app->bind(Recaptcha::class, function () { + $this->app->bind(Recaptcha::class, function ($app) { return new Recaptcha( - $this->app['request'], - $this->app['config']['recaptcha.site_key'], - $this->app['config']['recaptcha.secret_key'], - $this->app['config']['recaptcha.minimum_score'] + $app['request'], + $app['config']['recaptcha.site_key'], + $app['config']['recaptcha.secret_key'], + $app['config']['recaptcha.minimum_score'] ); });