Closed gkweb closed 7 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&someParam2=someAdditionalvalu123123" async="" defer=""></script>
Feedback apreciated. Cheers,
Glade
Hi, pls check out your indent :(
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&someParam2=someAdditionalvalu123123" async="" defer=""></script>
Feedback apreciated. Cheers,
Glade