Skip to content

Commit

Permalink
Add Recaptcha rule use on README example
Browse files Browse the repository at this point in the history
  • Loading branch information
torralbodavid committed May 23, 2020
1 parent 80ac20e commit e9718e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ composer require torralbodavid/simple-recaptcha-v3
</html>
```

2. Include below your form initialization tag, the `@captcha('xxxx')` blade directive. Replace xxxx with your desired [action](https://developers.google.com/recaptcha/docs/v3#actions){:target="_blank" rel="noopener"}.
2. Include below your form initialization tag, the `@captcha('xxxx')` blade directive. Replace xxxx with your desired [action](https://developers.google.com/recaptcha/docs/v3#actions).

```html
<form method="..." action="...">
Expand All @@ -43,6 +43,10 @@ composer require torralbodavid/simple-recaptcha-v3
`'recaptcha_response' => new Captcha`

```php
use Torralbodavid\SimpleRecaptchaV3\Rules\Captcha;

...

$request->validate([
...
'recaptcha_response' => new Captcha,
Expand Down

0 comments on commit e9718e4

Please sign in to comment.