Skip to content

Commit

Permalink
🐛 Fixed issue with rule name
Browse files Browse the repository at this point in the history
  • Loading branch information
IamSwap committed Apr 17, 2020
1 parent 0bd9abf commit c31931d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GoogleRecaptchaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function boot()
}

// Register validator
Validator::extend('recaptcha1', function ($attribute, $value, $parameters, $validator) {
Validator::extend('recaptcha', function ($attribute, $value, $parameters, $validator) {
$recaptcha = new ReCaptcha(config('google-recaptcha.secret'));

$response = $recaptcha->verify($value, request()->ip());
Expand Down

0 comments on commit c31931d

Please sign in to comment.