Skip to content

skychf/laravel-captcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Captcha

Installation

With composer :

{
    ...
    "require": {
        "skychf/captcha": "1.*"
    }
}

Usage

修改 config/app.php :

'providers' => array(
        'Skychf\Captcha\CaptchaServiceProvider'
)


'aliases' => array(
        'Captcha' => 'Skychf\Captcha\Facades\Captcha'
)
return response(Captcha::output())->header('Content-type','image/jpeg');

OR

session(['captcha' => Captcha::getChars()]);
return Captcha::inline();

License

This library is under MIT license, have a look to the LICENSE file

About

The captcha for laravel5

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages