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
3302fba2
Commit
3302fba2
authored
Dec 08, 2014
by
Nguyễn Văn Ánh
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4 from Stichoza/patch-1
Add more examples for Laravel 5
parents
b2f507d6
e60bc671
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
8 deletions
+27
-8
README.md
README.md
+27
-8
No files found.
README.md
View file @
3302fba2
...
...
@@ -46,19 +46,38 @@ return array(
### Usage
Display reCAPTCHA:
##### Display reCAPTCHA
Insert reCAPTCHA inside your form using one of this examples:
For Laravel 4
```
php
<?php
echo
Form
::
captcha
()
?>
```
`
For Laravel 4 using Blade syntax
```php
{{ Form::captcha() }}
```
For Laravel 5
```php
<?php
echo
Form
::
open
()
?>
<?php
echo
Form
::
captcha
()
?>
//
<?php
app
(
'captcha'
)
->
display
();
// for Laravel 5 ?>
<?php echo app('captcha')->display(); ?>
```
For Laravel 5 using Blade syntax
```php
{!! app('captcha')->display(); !!}
```
<?
php
echo
Form
::
submit
()
?>
<?php
echo
Form
::
close
()
?>
For Laravel 5 with `
illuminate/html
` package using Blade syntax
```php
{!! Form::captcha() !!}
```
Validate, add
`'g-recaptcha-response' => 'required|captcha'`
to rules array.
##### Validation
Add `
'g-recaptcha-response' => 'required|captcha'
` to rules array.
```php
...
...
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