Commit 821b8ca1 authored by Yerzhan Hn's avatar Yerzhan Hn Committed by GitHub

Explicit rendering after an onload callback

parent d055473a
...@@ -41,7 +41,17 @@ NOCAPTCHA_SITEKEY=site-key ...@@ -41,7 +41,17 @@ NOCAPTCHA_SITEKEY=site-key
With custom attributes and language support: With custom attributes and language support:
``` ```
{!! app('captcha')->display($attributes = [], $lang = null); !!} {!! app('captcha')->display($attributes = [], $lang = null, $callback = false, $onLoadClass = 'onLoadCallback'); !!}
```
```
<script type="text/javascript">
var recaptchaCallback = function() {
$('.g-recaptcha').each(function(index, el) {
grecaptcha.render(el, {'sitekey' : 'yourKey'});
});
};
</script>
``` ```
##### Validation ##### Validation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment