Laravel-8 验证码在服务器问题上启动

问题描述 投票:0回答:2

如何解决有关 Mews Captcha 的问题?

In ProviderRepository.php line 208:
                                                         
  Class 'Mews\Captcha\CaptchaServiceProvider' not found  
laravel laravel-8 captcha
2个回答
0
投票

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
    ],    
];

了解更多详情

mewebstudio 验证码详情


0
投票

使用这个包: 作曲家需要 hpd/验证码 使用方法:

      captcha(); // returns image

      captcha_get_src()// returns image source(URl)

      captcha_get_html()// returns img html element

文档链接:

https://packagist.org/packages/hpd/captcha

https://github.com/hamid-hpd/captcha.git

© www.soinside.com 2019 - 2024. All rights reserved.