elliot9/captcha

There is no license information available for the latest version (1.0.0) of this package.

1.0.0 2019-03-26 01:14 UTC

This package is auto-updated.

Last update: 2024-04-26 13:02:12 UTC


README

branch from mews for TTS

Preview

img

Download

Require this package with composer:

composer require elliot9/captcha

Usage

Find the providers key in config/app.php and register the Captcha Service Provider.

'providers' => [
    // ...
    Elliot9\Captcha\CaptchaServiceProvider::class,
]

Find the aliases key in config/app.php.

'aliases' => [
    // ...
    'Captcha' => Elliot9\Captcha\Facades\Captcha::class,
]

Configuration

php artisan vendor:publish
config/captcha.php
'default'   => [
    'length'    => 4,
    'width'     => 120,
    'height'    => 36,
    'quality'   => 90,
    'math'      => false,
    'account'   =>'', //TTS Account
    'password'  =>'', // TTS password
],

Example Usage

{{captcha_audio_src()}} => return Audio Captcha src
{{captcha}} => Captcha img