tp5 验证码验证 验证码刷新

首先使用Composer安装think-captcha扩展包: composer require topthink/think-captcha 在控制器中使用下面的代码进行验证码生成: <?php namespace app\index\controller; use think\Controller; use think\Request; use think\captcha\Captcha;
相关文章
相关标签/搜索