library laravel-recaptcha
Google Recaptcha - Laravel integration
coderscoop/laravel-recaptcha
Google Recaptcha - Laravel integration
- Sunday, May 14, 2017
- by SamyOteroGlez
- Repository
- 1 Watchers
- 2 Stars
- 12 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 6 Versions
- 9 % Grown
laravel-recaptcha
Google Recaptcha - Laravel integration, (*1)
Install
-
You can install directly using composer composer require coderscoop/laravel-recaptcha, (*2)
-
Or include the package to your composer.json, (*3)
"require": {
"coderscoop/laravel-recaptcha": "*"
}
-
Or download it directly from the github repository, (*4)
-
And run composer install or composer update, (*5)
"require": {
"coderscoop/laravel-recaptcha": "*"
},
"repositories": [
{
"type": "git",
"url": "git@github.com:Coder-Scoop-Inc/laravel-recaptcha.git"
}
]
- And run
composer install or composer update
Usage
-
Add Coderscoop\LaravelReCaptcha\ReCaptchaServiceProvider::class, to the providers array in config\app.php., (*6)
-
Add 'ReCaptcha' => Coderscoop\LaravelReCaptcha\Facade\ReCaptchaFacade::class, to the aliases array in config\app.php., (*7)
-
Add RECAPTCHA_PUBLIC_KEY and RECAPTCHA_PRIVATE_KEY to your .env file with the public and private keys., (*8)
-
Add the recaptcha field to your form {!! ReCaptcha::render() !!}, (*9)
-
Optionally you can pass the recaptcha attributes as an array, (*10)
{!!
ReCaptcha::render([
'theme' => 'light',
'includeScript' => true,
'responsive' => true
])
!!}
-
theme: The google recaptcha theme
-
includeScript: If includes or no the google recaptcha script
-
responsive: Makes the field responsive or no
-
Or you can interact directly with the class api in your controller by adding use ReCaptcha;., (*11)
-
Add the recaptcha validation rule 'g-recaptcha-response' => 'required|recaptcha', (*12)
-
Enjoy it!, (*13)
- You could publish the recaptcha config file using
php artisan vendor:publish --tag=config and you
will have access to the recaptcha config file in app/config/recaptcha.php
ToDo
- Add support for noscript
- Add language file
- Add support to integration with LaravelCollective
dev-master
9999999-dev
Google Recaptcha - Laravel integration
Sources
Download
MIT
The Development Requires
by
Samy Otero Glez
laravel
security
captcha
google
recaptcha
coderscoop
anti-robot
robot detection
v1.1.0
1.1.0.0
Google Recaptcha - Laravel integration
Sources
Download
MIT
The Development Requires
by
Samy Otero Glez
laravel
security
captcha
google
recaptcha
coderscoop
anti-robot
robot detection
dev-development
dev-development
Google Recaptcha - Laravel integration
Sources
Download
MIT
The Development Requires
by
Samy Otero Glez
laravel
security
captcha
google
recaptcha
coderscoop
anti-robot
robot detection
v1.0.1
1.0.1.0
Google Recaptcha - Laravel integration
Sources
Download
MIT
The Development Requires
by
Samy Otero Glez
v1.0.0
1.0.0.0
Google Recaptcha - Laravel integration
Sources
Download
MIT
The Development Requires
by
Samy Otero Glez
dev-Folder_structure_package_init
dev-Folder_structure_package_init
Google Recaptcha - Laravel integration
Sources
Download
MIT
The Development Requires
by
Samy Otero Glez