With composer :
{
...
"require": {
"skychf/captcha": "1.*"
}
}
修改 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();
This library is under MIT license, have a look to the LICENSE
file