diff --git a/src/Greggilbert/Recaptcha/RecaptchaServiceProvider.php b/src/Greggilbert/Recaptcha/RecaptchaServiceProvider.php index 115e266..01713b6 100644 --- a/src/Greggilbert/Recaptcha/RecaptchaServiceProvider.php +++ b/src/Greggilbert/Recaptcha/RecaptchaServiceProvider.php @@ -41,7 +41,7 @@ public function addValidator() $validator::extend('recaptcha', function($attribute, $value, $parameters) { - $captcha = app('Greggilbert\Recaptcha\CaptchaInterface'); + $captcha = app('Greggilbert\Recaptcha\RecaptchaInterface'); $challenge = app('Input')->get($captcha->getResponseKey()); return $captcha->check($challenge, $value); @@ -69,7 +69,7 @@ public function addFormMacro() $data['lang'] = $mergedOptions['lang']; } - $view = 'recaptcha::' . app('Greggilbert\Recaptcha\CaptchaInterface')->getTemplate(); + $view = 'recaptcha::' . app('Greggilbert\Recaptcha\RecaptchaInterface')->getTemplate(); $configTemplate = app('config')->get('recaptcha::template', ''); @@ -94,7 +94,7 @@ public function addFormMacro() */ public function register() { - $this->app->bind('Greggilbert\Recaptcha\CaptchaInterface', function() + $this->app->bind('Greggilbert\Recaptcha\RecaptchaInterface', function() { if(app('config')->get('recaptcha::version', false) === 2 || app('config')->get('recaptcha::v2', false)) {