Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
no-captcha
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
CENTER-TBI
no-captcha
Commits
7455bbfb
Commit
7455bbfb
authored
Sep 27, 2017
by
Yerzhan Hn
Committed by
GitHub
Sep 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
c880c608
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
README.md
README.md
+7
-11
No files found.
README.md
View file @
7455bbfb
...
...
@@ -32,6 +32,12 @@ NOCAPTCHA_SITEKEY=site-key
### Usage
##### Init js source
```
{!! app('captcha')->renderJs($lang = 'en', $callback = false, $onLoadClass = 'recaptchaCallback') !!}
```
##### Display reCAPTCHA
```
php
...
...
@@ -41,17 +47,7 @@ NOCAPTCHA_SITEKEY=site-key
With custom attributes and language support:
```
{!! 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>
{!! app('captcha')->display($attributes = []); !!}
```
##### Validation
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment