diff --git a/src/Configurations/ReCaptchaConfigV2.php b/src/Configurations/ReCaptchaConfigV2.php index 6d43623..dbfdb78 100644 --- a/src/Configurations/ReCaptchaConfigV2.php +++ b/src/Configurations/ReCaptchaConfigV2.php @@ -19,7 +19,7 @@ public function getRequestMethod() */ public function isServiceEnabled() { - return config('googlerecaptchav2.site_key'); + return config('googlerecaptchav2.is_service_enabled'); } /** diff --git a/src/GoogleReCaptchaV2.php b/src/GoogleReCaptchaV2.php index f69d3a7..5c07608 100644 --- a/src/GoogleReCaptchaV2.php +++ b/src/GoogleReCaptchaV2.php @@ -53,11 +53,10 @@ public function prepareViewData($ids = []) */ public function render(...$ids) { - if (! $this->getConfig()->isServiceEnabled()) { + if (!$this->getConfig()->isServiceEnabled()) { return; } $data = $this->prepareViewData($ids); - return app('view')->make($this->getConfig()->getTemplate(), $data); }