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
e60bc671
Commit
e60bc671
authored
Dec 08, 2014
by
Levan Velijanashvili
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more examples for Laravel 5
parent
b2f507d6
Changes
1
Show 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 @
e60bc671
...
@@ -46,19 +46,38 @@ return array(
...
@@ -46,19 +46,38 @@ return array(
### Usage
### Usage
Display reCAPTCHA:
##### Display reCAPTCHA
Insert reCAPTCHA inside your form using one of this examples:
For Laravel 4
```
php
```
php
<?php
echo
Form
::
open
()
?>
<?php
echo
Form
::
captcha
()
?>
```
`
<?php
echo
Form
::
captcha
()
?>
For Laravel 4 using Blade syntax
//
<?php
app
(
'captcha'
)
->
display
();
// for Laravel 5 ?>
```php
{{ Form::captcha() }}
```
<?
php
echo
Form
::
submit
()
?>
For Laravel 5
<?php
echo
Form
::
close
()
?>
```php
<?php echo app('captcha')->display(); ?>
```
```
Validate, add
`'g-recaptcha-response' => 'required|captcha'`
to rules array.
For Laravel 5 using Blade syntax
```php
{!! app('captcha')->display(); !!}
```
For Laravel 5 with `
illuminate/html
` package using Blade syntax
```php
{!! Form::captcha() !!}
```
##### Validation
Add `
'g-recaptcha-response' => 'required|captcha'
` to rules array.
```php
```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