Releases: RyanDaDeng/laravel-google-recaptcha-v3
Typo for service enabled pointer to wrong name
2.2.10 Update README.md
Added more support for Blade usage
There are three methods to populate the reCAPTCHA within the form.
- render() and renderOne() can be placed in anywhere.
- renderField() needs always to be placed within your form.
Method one - render():
[
$id=>$action , $id=>$action ...
]
{!! GoogleReCaptchaV3::render(['contact_us_id'=>'contact_us', 'signup_id'=>'signup']) !!}
<form method="POST" action="/verify">
<div id="contact_us_id"></div> // add div with id
<input type="submit" value="submit">
</form>
<form method="POST" action="/verify">
<div id="signup_id"></div>
<input type="submit" value="submit">
</form>
{!! GoogleReCaptchaV3::render(['contact_us_id'=>'contact_us', 'signup_id'=>'signup']) !!}
Method two - renderOne():
GoogleReCaptchaV3::renderOne($id,$action);
{!! GoogleReCaptchaV3::renderOne('contact_us_id','contact_us') !!}
<form method="POST" action="/verify">
<div id="contact_us_id"></div> // add div with id
<input type="submit" value="submit">
</form>
{!! GoogleReCaptchaV3::renderOne('contact_us_id','contact_us') !!}
Method three - renderField():
GoogleReCaptchaV3::renderField($id,$action,$class,$style)
{!! GoogleReCaptchaV3::renderField('contact_us_id','contact_us_action') !!}
<form method="POST" action="/verify">
{!! GoogleReCaptchaV3::renderField('contact_us_id','contact_us_action') !!}
<input type="submit" value="submit">
</form>
Added field check
in template file, added field check if id exists in js
Background mode improvement
Now background() is replaced with init() function for Blade usage
Fixed code structure for Background script
Cleanup code and added unit tests for background script
Added background script support
Google recommend the script can be placed in the background of the pages for analytics.
The current approach only supports that script can only be applied to form.
If the user wants to have the script to be running on every page of the site, the current approach does not satisfy the requirement.
This release resolved the above issue.
e.g.
{!! GoogleReCaptchaV3::background() !!} in bottom of your page.
IP list skip feature finalized and tests added
Merge pull request #22 from RyanDaDeng/analysis-z9BQKl Apply fixes from StyleCI
Skip IP list supported
- Now the config file has skip ip option, you can append any ips that you want to skip
readme updated with vue component details
2.2.1 Update README.md
Vue component improved
A huge improvement for Vue component
A BIG thanks to @Fluxlicious who improved the vue component.
Related PR:
#21
= 2.2.0 => prop changed from elementId to id