anhskohbo / no-captcha

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

Dev master #47

Closed gkweb closed 7 years ago

gkweb commented 8 years ago

This adds the ability to append your own parameters to the api JS link. This would save myself and alot of other people a heap of time. Some JS requires appending a custom callback function to the api url etc.. so helps alot!

Usage for appending params is like so:

{!! app('captcha')->display([],null,['someParam'=>'someval123','someParam2'=>'someAdditionalvalu123123']); !!}

Renders out like so:

<script src="https://www.google.com/recaptcha/api.js?someParam=someval123&amp;someParam2=someAdditionalvalu123123" async="" defer=""></script>

Feedback apreciated. Cheers,

Glade

anhskohbo commented 8 years ago

Hi, pls check out your indent :(