mews/captcha 验证码

安装

说明
github
composer 安装
composer require mews/captcha

配置

config/app.php

'providers' => [
    ...
    Mews\Captcha\CaptchaServiceProvider::class,
],
'aliases' => [
    ...
    'Captcha' => Mews\Captcha\Facades\Captcha::class,
],

运行 php artisan vendor:publish 生成配置文件 config/captcha.php

运行时选择Provider: Mews\Captcha\CaptchaServiceProvider

使用

use Mews\Captcha\Facades\Captcha;
*
*
Captcha::create("default", true);
*
*

本文链接:

https://www.antixu.com/archives/411/
1 + 5 =
快来做第一个评论的人吧~