如何解决有关 Mews Captcha 的问题?
In ProviderRepository.php line 208:
Class 'Mews\Captcha\CaptchaServiceProvider' not found
Mews 验证码未正确安装或配置。 请按照以下步骤操作:
作曲家需要 mews/验证码
如果一切顺利的话
在 config/app.php 中找到providers键并注册验证码服务提供商。
'providers' => [
// ...
'Mews\Captcha\CaptchaServiceProvider',
]
要使用您自己的设置,请发布配置。
$ php artisan 供应商:发布
配置/captcha.php
return [
'default' => [
'length' => 5,
'width' => 120,
'height' => 36,
'quality' => 90,
'math' => true, //Enable Math Captcha
'expire' => 60, //Stateless/API captcha expiration
],
];
了解更多详情
使用这个包: 作曲家需要 hpd/验证码 使用方法:
captcha(); // returns image
captcha_get_src()// returns image source(URl)
captcha_get_html()// returns img html element
文档链接: