think-captcha
think-captcha copied to clipboard
Fatal error: Uncaught Error: Class 'Route' not found in vendor\topthink\think-captcha\src\helper.php on line 12
//test.php in test folder require_once DIR.'/../vendor/autoload.php';
use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception;
$mail = new PHPMailer(true);
try {} catch (Exception $e) {}
"php": ">=5.6.0",
"topthink/framework": "5.1.*",
"topthink/think-captcha": "2.0.*",
"phpmailer/phpmailer": "^6.4"
这问题怎么解决的?只能升级TP到6?
thinkphp 5.1 可以考虑卸载官方的验证码扩展,安装我这个版本来解决。 地址:https://github.com/jonesshen/think-captcha