Package Data | |
---|---|
Maintainer Username: | AnandPilania |
Maintainer Contact: | pilaniaanand@gmail.com (Anand Pilania) |
Package Create Date: | 2017-06-29 |
Package Last Update: | 2017-08-04 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-21 03:01:29 |
Package Statistics | |
---|---|
Total Downloads: | 11 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Captcha package for laravel, that can be embeded in any website as widget
.
composer install anandpilania/laravel-captcha
ServiceProvider
OR Facade
:
AP\Captcha\ServiceProvider::class
"Captcha" => AP\Captcha\Facade::class
IF USING DIRECTLY IN LARAVEL PROJECT
captcha
attribute to the view
: Captcha::build()
build
method accepts two parameters
1- int - length
of the captcha value
,
2- boolean - html
: if passed true
, returns the default html contianer else return the code
(default: false)validation field
to your specific controller
: "captcha_code" => "captcha"
IF USING AS WIDGET
route
: GET: //HOSTNAME/captcha/widget (optionally can pall the int : length
parameter as //HOSTNAME/captcha/widget/6)