Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanDaDeng committed Jan 8, 2019
1 parent f4172fd commit d7cd773
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Configurations/ReCaptchaConfigV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function getRequestMethod()
*/
public function isServiceEnabled()
{
return config('googlerecaptchav2.site_key');
return config('googlerecaptchav2.is_service_enabled');
}

/**
Expand Down
3 changes: 1 addition & 2 deletions src/GoogleReCaptchaV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d7cd773

Please sign in to comment.