Skip to content

Releases: RyanDaDeng/laravel-google-recaptcha-v3

Typo for service enabled pointer to wrong name

26 Jan 08:25
b1e203e
Compare
Choose a tag to compare
2.2.10

Update README.md

Added more support for Blade usage

26 Jan 06:59
c20b58f
Compare
Choose a tag to compare

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

26 Jan 06:14
Compare
Choose a tag to compare

in template file, added field check if id exists in js

Background mode improvement

26 Jan 05:59
369243c
Compare
Choose a tag to compare

Now background() is replaced with init() function for Blade usage

Fixed code structure for Background script

26 Jan 04:03
2689651
Compare
Choose a tag to compare

Cleanup code and added unit tests for background script

Added background script support

26 Jan 03:42
Compare
Choose a tag to compare

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

25 Jan 14:02
527ca08
Compare
Choose a tag to compare
Merge pull request #22 from RyanDaDeng/analysis-z9BQKl

Apply fixes from StyleCI

Skip IP list supported

25 Jan 13:57
0c291e5
Compare
Choose a tag to compare
  • Now the config file has skip ip option, you can append any ips that you want to skip

readme updated with vue component details

25 Jan 09:49
e2fbd98
Compare
Choose a tag to compare

Vue component improved

25 Jan 09:05
Compare
Choose a tag to compare

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