anhskohbo / no-captcha

No CAPTCHA reCAPTCHA For Laravel.
https://packagist.org/packages/anhskohbo/no-captcha
MIT License
1.78k stars 234 forks source link

Update for multiple app('captcha')->display() on the same page - V2 #71

Closed seltix5 closed 9 months ago

seltix5 commented 7 years ago

BRANCH CORRECTION OF PREVIOUS PULL REQUEST : https://github.com/anhskohbo/no-captcha/pull/58

ORIGINAL COMMENT :

hi! so, after furder checking this situation, i forget that the default google reCaptcha code will automatically render only the first div/instance, so i added a function to use the "explicit" mode, with this changes to request only one noCaptcha just call display :

{!! app('captcha')->display() !!}

when usign multipla instance we should call only the functio multiple_display like this :

{!! app('captcha')->multiple_display() !!} ..... {!! app('captcha')->multiple_display() !!}

what do you think?

seltix5 commented 7 years ago

hi, the test should be updated too because the display() will not work when called multiple times... :S